org.ops4j.pax.scanner.common
Class ScannerConfigurationImpl

java.lang.Object
  extended by org.ops4j.util.property.PropertyStore
      extended by org.ops4j.pax.scanner.common.ScannerConfigurationImpl
All Implemented Interfaces:
ScannerConfiguration
Direct Known Subclasses:
PomScannerConfigurationImpl

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.Boolean getCertificateCheck()
          Returns true if the certificate should be checked on SSL connection, false otherwise.
protected  java.lang.String getPid()
          Getter.
 org.ops4j.util.property.PropertyResolver getPropertyResolver()
          Getter.
 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()

getCertificateCheck

public java.lang.Boolean getCertificateCheck()
Description copied from interface: ScannerConfiguration
Returns true if the certificate should be checked on SSL connection, false otherwise.

Specified by:
getCertificateCheck in interface ScannerConfiguration
Returns:
true if the certificate should be checked
See Also:
ScannerConfiguration.getCertificateCheck()

getPid

protected java.lang.String getPid()
Getter.

Returns:
PID

getPropertyResolver

public org.ops4j.util.property.PropertyResolver getPropertyResolver()
Getter.

Returns:
property resolver


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.