public class ScrConfigurationImpl extends java.lang.Object implements ScrConfiguration
ScrConfiguration
class conveys configuration for the
Felix DS implementation bundle.
Configuration Source
ManagedService
with Service PID
org.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.
Modifier and Type | Field and Description |
---|---|
private Activator |
activator |
private org.osgi.framework.BundleContext |
bundleContext |
private boolean |
factoryEnabled |
private java.lang.Boolean |
globalExtender |
private boolean |
infoAsService |
private boolean |
keepInstances |
private long |
lockTimeout |
private static java.lang.String |
LOG_LEVEL_DEBUG |
private static java.lang.String |
LOG_LEVEL_ERROR |
private static java.lang.String |
LOG_LEVEL_INFO |
private static java.lang.String |
LOG_LEVEL_WARN |
private int |
logLevel |
private org.osgi.framework.ServiceRegistration<org.osgi.service.cm.ManagedService> |
managedService |
private static java.lang.String |
PROP_SHOWERRORS |
private static java.lang.String |
PROP_SHOWTRACE |
private ScrCommand |
scrCommand |
private long |
stopTimeout |
private static java.lang.String |
VALUE_TRUE |
DEFAULT_LOCK_TIMEOUT_MILLISECONDS, DEFAULT_STOP_TIMEOUT_MILLISECONDS, PID, PROP_DELAYED_KEEP_INSTANCES, PROP_FACTORY_ENABLED, PROP_GLOBAL_EXTENDER, PROP_INFO_SERVICE, PROP_LOCK_TIMEOUT, PROP_LOGLEVEL, PROP_STOP_TIMEOUT
Constructor and Description |
---|
ScrConfigurationImpl(Activator activator) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
configure(java.util.Dictionary<java.lang.String,?> config,
boolean fromConfig) |
private boolean |
getDefaultFactoryEnabled() |
private boolean |
getDefaultGlobalExtender() |
private boolean |
getDefaultInfoAsService() |
private boolean |
getDefaultKeepInstances() |
private long |
getDefaultLockTimeout() |
private int |
getDefaultLogLevel() |
private long |
getDefaultStopTimeout() |
int |
getLogLevel()
Returns the current log level.
|
private int |
getLogLevel(java.lang.Object levelObject) |
boolean |
globalExtender() |
boolean |
infoAsService() |
boolean |
isFactoryEnabled() |
boolean |
keepInstances() |
long |
lockTimeout() |
void |
setScrCommand(ScrCommand scrCommand) |
void |
start(org.osgi.framework.BundleContext bundleContext) |
void |
stop() |
long |
stopTimeout() |
private static final java.lang.String VALUE_TRUE
private static final java.lang.String LOG_LEVEL_DEBUG
private static final java.lang.String LOG_LEVEL_INFO
private static final java.lang.String LOG_LEVEL_WARN
private static final java.lang.String LOG_LEVEL_ERROR
private static final java.lang.String PROP_SHOWTRACE
private static final java.lang.String PROP_SHOWERRORS
private final Activator activator
private int logLevel
private boolean factoryEnabled
private boolean keepInstances
private boolean infoAsService
private long lockTimeout
private long stopTimeout
private java.lang.Boolean globalExtender
private org.osgi.framework.BundleContext bundleContext
private org.osgi.framework.ServiceRegistration<org.osgi.service.cm.ManagedService> managedService
private ScrCommand scrCommand
public ScrConfigurationImpl(Activator activator)
public void start(org.osgi.framework.BundleContext bundleContext)
public void stop()
public void setScrCommand(ScrCommand scrCommand)
void configure(java.util.Dictionary<java.lang.String,?> config, boolean fromConfig)
public int getLogLevel()
getLogLevel
in interface ScrConfiguration
public boolean isFactoryEnabled()
isFactoryEnabled
in interface ScrConfiguration
public boolean keepInstances()
keepInstances
in interface ScrConfiguration
public boolean infoAsService()
infoAsService
in interface ScrConfiguration
public long lockTimeout()
lockTimeout
in interface ScrConfiguration
public long stopTimeout()
stopTimeout
in interface ScrConfiguration
public boolean globalExtender()
private boolean getDefaultFactoryEnabled()
private boolean getDefaultKeepInstances()
private int getDefaultLogLevel()
private boolean getDefaultInfoAsService()
private long getDefaultLockTimeout()
private long getDefaultStopTimeout()
private boolean getDefaultGlobalExtender()
private int getLogLevel(java.lang.Object levelObject)