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 Object implements org.osgi.framework.ServiceFactory
TheScrManagedServiceServiceFactoryis aServiceFactoryregistered on behalf ofScrManagedServiceto create a managed service instance on demand once it is used by the Configuration Admin Service.In contrast to the
ScrManagedServiceclass, this class only requires core OSGi API and thus may be instantiated without the Configuration Admin actually available at the time of instantiation.
-
-
Constructor Summary
Constructors Constructor Description ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)voidungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
-
-
-
Constructor Detail
-
ScrManagedServiceServiceFactory
public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
-
-
Method Detail
-
getService
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
- Specified by:
getServicein interfaceorg.osgi.framework.ServiceFactory
-
ungetService
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)- Specified by:
ungetServicein interfaceorg.osgi.framework.ServiceFactory
-
-