Class ScrConfigurationImpl

  • All Implemented Interfaces:
    ScrConfiguration

    public class ScrConfigurationImpl
    extends java.lang.Object
    implements ScrConfiguration
    The ScrConfiguration class conveys configuration for the Felix DS implementation bundle.

    Configuration Source

    1. Framework properties: These are read when the Declarative Services implementation is first started.
    2. Configuration Admin Service: Properties are provided by means of a 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.

    • Field Detail

      • VALUE_TRUE

        private static final java.lang.String VALUE_TRUE
      • activator

        private final Activator activator
      • logLevel

        private int logLevel
      • factoryEnabled

        private boolean factoryEnabled
      • keepInstances

        private boolean keepInstances
      • infoAsService

        private boolean infoAsService
      • lockTimeout

        private long lockTimeout
      • stopTimeout

        private long stopTimeout
      • serviceChangecountTimeout

        private long serviceChangecountTimeout
      • globalExtender

        private java.lang.Boolean globalExtender
      • bundleContext

        private volatile org.osgi.framework.BundleContext bundleContext
      • managedServiceRef

        private volatile org.osgi.framework.ServiceRegistration<?> managedServiceRef
      • metatypeProviderRef

        private volatile org.osgi.framework.ServiceRegistration<?> metatypeProviderRef
    • Constructor Detail

      • ScrConfigurationImpl

        public ScrConfigurationImpl​(Activator activator)
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext bundleContext)
      • stop

        public void stop()
      • configure

        void configure​(java.util.Dictionary<java.lang.String,​?> config,
                       boolean fromConfig)
      • 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 interface ScrConfiguration
        Returns:
      • getDefaultFactoryEnabled

        private boolean getDefaultFactoryEnabled()
      • getDefaultKeepInstances

        private boolean getDefaultKeepInstances()
      • getDefaultLogLevel

        private int getDefaultLogLevel()
      • getDefaultInfoAsService

        private boolean getDefaultInfoAsService()
      • getDefaultLockTimeout

        private long getDefaultLockTimeout()
      • getDefaultStopTimeout

        private long getDefaultStopTimeout()
      • getServiceChangecountTimeout

        private long getServiceChangecountTimeout()
      • getDefaultGlobalExtender

        private boolean getDefaultGlobalExtender()
      • getLogLevel

        private int getLogLevel​(java.lang.Object levelObject)