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<ScrManagedService>
public class ScrManagedServiceServiceFactory extends Object implements org.osgi.framework.ServiceFactory<ScrManagedService>
TheScrManagedServiceServiceFactory
is the ServiceFactory registered on behalf of theScrManagedService
(orScrManagedServiceMetaTypeProvider
, resp.) to create the instance on demand once it is used by the Configuration Admin Service or the MetaType Service.In contrast to the
ScrManagedService
andScrManagedServiceMetaTypeProvider
classes, this class only requires core OSGi API and thus may be instantiated without the Configuration Admin and/or MetaType Service API actually available at the time of instantiation.
-
-
Constructor Summary
Constructors Constructor Description ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration, SimpleLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScrManagedService
getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ScrManagedService> registration)
void
ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ScrManagedService> registration, ScrManagedService service)
-
-
-
Constructor Detail
-
ScrManagedServiceServiceFactory
public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration, SimpleLogger logger)
-
-
Method Detail
-
getService
public ScrManagedService getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ScrManagedService> registration)
- Specified by:
getService
in interfaceorg.osgi.framework.ServiceFactory<ScrManagedService>
-
ungetService
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ScrManagedService> registration, ScrManagedService service)
- Specified by:
ungetService
in interfaceorg.osgi.framework.ServiceFactory<ScrManagedService>
-
-