org.ops4j.pax.runner.provision.scanner
Class ScannerConfigurationImpl

java.lang.Object
  extended by org.ops4j.util.property.PropertyStore
      extended by org.ops4j.pax.runner.provision.scanner.ScannerConfigurationImpl
All Implemented Interfaces:
ScannerConfiguration

public class ScannerConfigurationImpl
extends org.ops4j.util.property.PropertyStore
implements ScannerConfiguration

ScannerConfiguration implementation.

Since:
August 11, 2007
Author:
Alin Dreghiciu
See Also:
ScannerConfiguration

Constructor Summary
ScannerConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver, java.lang.String pid)
          Creates a new service configuration.
 
Method Summary
 java.lang.Integer getStartLevel()
          Returns an integer representing the configured default start level of the bundle.
 java.lang.Boolean shouldStart()
          Returns if installed bundles should be started ot not.
 java.lang.Boolean shouldUpdate()
          If installed bundles should be updated ot not.
 
Methods inherited from class org.ops4j.util.property.PropertyStore
contains, get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerConfigurationImpl

public ScannerConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver,
                                java.lang.String pid)
Creates a new service configuration.

Parameters:
propertyResolver - propertyResolver used to resolve properties; mandatory
pid - scanner pid
Method Detail

getStartLevel

public java.lang.Integer getStartLevel()
Description copied from interface: ScannerConfiguration
Returns an integer representing the configured default start level of the bundle.

Specified by:
getStartLevel in interface ScannerConfiguration
Returns:
the tsrat level or null if not configured
See Also:
ScannerConfiguration.getStartLevel()

shouldStart

public java.lang.Boolean shouldStart()
Description copied from interface: ScannerConfiguration
Returns if installed bundles should be started ot not. If the value is not configured will return true.

Specified by:
shouldStart in interface ScannerConfiguration
Returns:
true if bundles shouls be started
See Also:
ScannerConfiguration.shouldStart()

shouldUpdate

public java.lang.Boolean shouldUpdate()
Description copied from interface: ScannerConfiguration
If installed bundles should be updated ot not. If the value is not configured will return false.

Specified by:
shouldUpdate in interface ScannerConfiguration
Returns:
true if bundles shouls be updated
See Also:
ScannerConfiguration.shouldUpdate()


Copyright © 2008. All Rights Reserved.