public class ScrMetaTypeProviderServiceFactory
extends java.lang.Object
implements org.osgi.framework.ServiceFactory
ScrMetaTypeProviderServiceFactory
is a ServiceFactory
registered
on behalf of ScrConfiguration
to create a metatype provider instance
on demand once it is used by the Metatype Service.
In contrast to the ScrMetaTypeProvider
class, this class only requires
core OSGi API and thus may be instantiated without the MetaType Service API actually available
at the time of instantiation.
Modifier and Type | Field and Description |
---|---|
private ScrConfiguration |
scrConfiguration |
Constructor and Description |
---|
ScrMetaTypeProviderServiceFactory(ScrConfiguration scrConfiguration) |
Modifier and Type | Method and 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) |
private final ScrConfiguration scrConfiguration
public ScrMetaTypeProviderServiceFactory(ScrConfiguration scrConfiguration)
public java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
ungetService
in interface org.osgi.framework.ServiceFactory