Class ScrManagedServiceServiceFactory

java.lang.Object
org.apache.felix.scr.impl.config.ScrManagedServiceServiceFactory
All Implemented Interfaces:
org.osgi.framework.ServiceFactory

public class ScrManagedServiceServiceFactory extends Object implements org.osgi.framework.ServiceFactory
The ScrManagedServiceServiceFactory is a ServiceFactory registered on behalf of ScrManagedService to create a managed service instance on demand once it is used by the Configuration Admin Service.

In contrast to the ScrManagedService class, this class only requires core OSGi API and thus may be instantiated without the Configuration Admin actually available at the time of instantiation.

  • Field Details

  • Constructor Details

    • ScrManagedServiceServiceFactory

      public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
  • Method Details

    • getService

      public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
      Specified by:
      getService in interface org.osgi.framework.ServiceFactory
    • ungetService

      public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
      Specified by:
      ungetService in interface org.osgi.framework.ServiceFactory