Interface ScrConfiguration
-
- All Known Implementing Classes:
ScrConfigurationImpl
public interface ScrConfiguration
TheScrConfiguration
class conveys configuration for the Felix DS implementation bundle.Configuration Source
- Framework properties: These are read when the Declarative Services implementation is first started.
- Configuration Admin Service: Properties are provided by means of a
ManagedService
with Service PIDorg.apache.felix.scr.ScrService
. This class uses an OSGi Service Factory (ScrManagedServiceServiceFactory
) to register the managed service without requiring the Configuration Admin Service API to be required upfront.
See the Configuration section of the Apache Felix Service Component Runtime documentation page for detailed information.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_LOCK_TIMEOUT_MILLISECONDS
static long
DEFAULT_SERVICE_CHANGECOUNT_TIMEOUT_MILLISECONDS
static long
DEFAULT_STOP_TIMEOUT_MILLISECONDS
static java.lang.String
PID
static java.lang.String
PROP_CACHE_METADATA
static java.lang.String
PROP_DELAYED_KEEP_INSTANCES
static java.lang.String
PROP_FACTORY_ENABLED
static java.lang.String
PROP_GLOBAL_EXTENDER
static java.lang.String
PROP_INFO_SERVICE
static java.lang.String
PROP_LOCK_TIMEOUT
static java.lang.String
PROP_LOG_EXTENSION
SeeisLogExtension()
static java.lang.String
PROP_LOGLEVEL
static java.lang.String
PROP_SERVICE_CHANGECOUNT_TIMEOUT
static java.lang.String
PROP_STOP_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
cacheMetadata()
InternalLogger.Level
getLogLevel()
Returns the current log level.boolean
globalExtender()
boolean
infoAsService()
Deprecated.boolean
isFactoryEnabled()
boolean
isLogExtension()
If true, use a logging extension.boolean
keepInstances()
long
lockTimeout()
long
serviceChangecountTimeout()
long
stopTimeout()
-
-
-
Field Detail
-
PID
static final java.lang.String PID
- See Also:
- Constant Field Values
-
PROP_FACTORY_ENABLED
static final java.lang.String PROP_FACTORY_ENABLED
- See Also:
- Constant Field Values
-
PROP_DELAYED_KEEP_INSTANCES
static final java.lang.String PROP_DELAYED_KEEP_INSTANCES
- See Also:
- Constant Field Values
-
PROP_INFO_SERVICE
static final java.lang.String PROP_INFO_SERVICE
- See Also:
- Constant Field Values
-
PROP_LOCK_TIMEOUT
static final java.lang.String PROP_LOCK_TIMEOUT
- See Also:
- Constant Field Values
-
PROP_STOP_TIMEOUT
static final java.lang.String PROP_STOP_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_LOCK_TIMEOUT_MILLISECONDS
static final long DEFAULT_LOCK_TIMEOUT_MILLISECONDS
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_CHANGECOUNT_TIMEOUT_MILLISECONDS
static final long DEFAULT_SERVICE_CHANGECOUNT_TIMEOUT_MILLISECONDS
- See Also:
- Constant Field Values
-
DEFAULT_STOP_TIMEOUT_MILLISECONDS
static final long DEFAULT_STOP_TIMEOUT_MILLISECONDS
- See Also:
- Constant Field Values
-
PROP_LOGLEVEL
static final java.lang.String PROP_LOGLEVEL
- See Also:
- Constant Field Values
-
PROP_LOG_EXTENSION
static final java.lang.String PROP_LOG_EXTENSION
SeeisLogExtension()
- See Also:
- Constant Field Values
-
PROP_GLOBAL_EXTENDER
static final java.lang.String PROP_GLOBAL_EXTENDER
- See Also:
- Constant Field Values
-
PROP_SERVICE_CHANGECOUNT_TIMEOUT
static final java.lang.String PROP_SERVICE_CHANGECOUNT_TIMEOUT
- See Also:
- Constant Field Values
-
PROP_CACHE_METADATA
static final java.lang.String PROP_CACHE_METADATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLogLevel
InternalLogger.Level getLogLevel()
Returns the current log level.- Returns:
-
isFactoryEnabled
boolean isFactoryEnabled()
-
keepInstances
boolean keepInstances()
-
infoAsService
@Deprecated boolean infoAsService()
Deprecated.
-
lockTimeout
long lockTimeout()
-
stopTimeout
long stopTimeout()
-
globalExtender
boolean globalExtender()
- Since:
- 2.1
-
serviceChangecountTimeout
long serviceChangecountTimeout()
- Since:
- 2.2
-
cacheMetadata
boolean cacheMetadata()
-
isLogExtension
boolean isLogExtension()
If true, use a logging extension. The extension can be incompatible with the OSGi specification.- Returns:
- true if extension allowed
-
-