Package org.apache.felix.scr.impl.config
Class ScrManagedServiceServiceFactory
- java.lang.Object
-
- org.apache.felix.scr.impl.config.ScrManagedServiceServiceFactory
-
- All Implemented Interfaces:
org.osgi.framework.ServiceFactory
public class ScrManagedServiceServiceFactory extends java.lang.Object implements org.osgi.framework.ServiceFactory
TheScrManagedServiceServiceFactory
is aServiceFactory
registered on behalf ofScrManagedService
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 Summary
Fields Modifier and Type Field Description private ScrConfigurationImpl
scrConfiguration
-
Constructor Summary
Constructors Constructor Description ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
void
ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
-
-
-
Field Detail
-
scrConfiguration
private final ScrConfigurationImpl scrConfiguration
-
-
Constructor Detail
-
ScrManagedServiceServiceFactory
public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
-
-
Method Detail
-
getService
public java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
- Specified by:
getService
in interfaceorg.osgi.framework.ServiceFactory
-
ungetService
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
- Specified by:
ungetService
in interfaceorg.osgi.framework.ServiceFactory
-
-