public class ScrManagedServiceServiceFactory extends Object implements org.osgi.framework.ServiceFactory
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.
| Constructor and Description |
|---|
ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration) |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service) |
public ScrManagedServiceServiceFactory(ScrConfigurationImpl scrConfiguration)
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService in interface org.osgi.framework.ServiceFactorypublic void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
ungetService in interface org.osgi.framework.ServiceFactoryCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.