org.osgi.framework.ServiceFactory<ScrManagedService>public class ScrManagedServiceServiceFactory extends Object implements org.osgi.framework.ServiceFactory<ScrManagedService>
ScrManagedServiceServiceFactory is the ServiceFactory
registered on behalf of the ScrManagedService (or
ScrManagedServiceMetaTypeProvider, 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 and
ScrManagedServiceMetaTypeProvider 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 | Description |
|---|---|
ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration,
SimpleLogger logger) |
| 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) |
public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration, SimpleLogger logger)
public ScrManagedService getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ScrManagedService> registration)
getService in interface org.osgi.framework.ServiceFactory<ScrManagedService>public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<ScrManagedService> registration,
ScrManagedService service)
ungetService in interface org.osgi.framework.ServiceFactory<ScrManagedService>Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.