Package org.apache.felix.scr.impl.config
Class ScrConfigurationImpl
java.lang.Object
org.apache.felix.scr.impl.config.ScrConfigurationImpl
- All Implemented Interfaces:
ScrConfiguration
The
ScrConfiguration
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 inherited from interface org.apache.felix.scr.impl.manager.ScrConfiguration
DEFAULT_LOCK_TIMEOUT_MILLISECONDS, DEFAULT_SERVICE_CHANGECOUNT_TIMEOUT_MILLISECONDS, DEFAULT_STOP_TIMEOUT_MILLISECONDS, PID, PROP_CACHE_METADATA, PROP_DELAYED_KEEP_INSTANCES, PROP_FACTORY_ENABLED, PROP_GLOBAL_EXTENDER, PROP_INFO_SERVICE, PROP_LOCK_TIMEOUT, PROP_LOGLEVEL, PROP_SERVICE_CHANGECOUNT_TIMEOUT, PROP_STOP_TIMEOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the current log level.boolean
boolean
boolean
boolean
long
long
void
setScrCommand
(org.apache.felix.scr.impl.ComponentCommands scrCommand) void
start
(org.osgi.framework.BundleContext bundleContext) void
stop()
long
-
Constructor Details
-
ScrConfigurationImpl
public ScrConfigurationImpl(org.apache.felix.scr.impl.Activator activator)
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext bundleContext) -
stop
public void stop() -
setScrCommand
public void setScrCommand(org.apache.felix.scr.impl.ComponentCommands scrCommand) -
getLogLevel
public int getLogLevel()Returns the current log level. Note that this log level is not used with an R7 LogService implementation.- Specified by:
getLogLevel
in interfaceScrConfiguration
- Returns:
-
isFactoryEnabled
public boolean isFactoryEnabled()- Specified by:
isFactoryEnabled
in interfaceScrConfiguration
-
keepInstances
public boolean keepInstances()- Specified by:
keepInstances
in interfaceScrConfiguration
-
infoAsService
public boolean infoAsService()- Specified by:
infoAsService
in interfaceScrConfiguration
-
lockTimeout
public long lockTimeout()- Specified by:
lockTimeout
in interfaceScrConfiguration
-
stopTimeout
public long stopTimeout()- Specified by:
stopTimeout
in interfaceScrConfiguration
-
globalExtender
public boolean globalExtender()- Specified by:
globalExtender
in interfaceScrConfiguration
-
cacheMetadata
public boolean cacheMetadata()- Specified by:
cacheMetadata
in interfaceScrConfiguration
-
serviceChangecountTimeout
public long serviceChangecountTimeout()- Specified by:
serviceChangecountTimeout
in interfaceScrConfiguration
-