Class ScrConfigurationImpl

  • All Implemented Interfaces:
    LogConfiguration, 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
      • factoryEnabled

        private boolean factoryEnabled
      • keepInstances

        private boolean keepInstances
      • infoAsService

        private boolean infoAsService
      • cacheMetadata

        private boolean cacheMetadata
      • isLogEnabled

        private boolean isLogEnabled
      • isLogExtensionEnabled

        private boolean isLogExtensionEnabled
      • 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)
      • getDefaultFactoryEnabled

        private boolean getDefaultFactoryEnabled()
      • getDefaultKeepInstances

        private boolean getDefaultKeepInstances()
      • getDefaultInfoAsService

        private boolean getDefaultInfoAsService()
      • getDefaultLockTimeout

        private long getDefaultLockTimeout()
      • getDefaultStopTimeout

        private long getDefaultStopTimeout()
      • getServiceChangecountTimeout

        private long getServiceChangecountTimeout()
      • getDefaultGlobalExtender

        private boolean getDefaultGlobalExtender()
      • getDefaultCacheMetadata

        private boolean getDefaultCacheMetadata()
      • isLogEnabled

        public boolean isLogEnabled()
        Description copied from interface: LogConfiguration
        Checks if the logging is enabled. Disabling logging is incompatible with the OSGi specification.
        Specified by:
        isLogEnabled in interface LogConfiguration
        Returns:
        true if enabled otherwise false
      • isLogExtensionEnabled

        public boolean isLogExtensionEnabled()
        Description copied from interface: LogConfiguration
        Checks if the log extension is enabled. The extension is incompatible with the OSGi specification.
        Specified by:
        isLogExtensionEnabled in interface LogConfiguration
        Returns:
        true if enabled otherwise false
      • getDefaultLogExtension

        private boolean getDefaultLogExtension()
      • getDefaultLogEnabled

        private boolean getDefaultLogEnabled()
      • checkIfLogEnabled

        private boolean checkIfLogEnabled​(java.util.Dictionary<java.lang.String,​?> properties)