public class DeclarationServiceFactory extends java.lang.Object implements org.osgi.framework.ServiceFactory<DeclarationBuilderService>
ServiceFactory
for DeclarationBuilderService
.
It avoids to explicitly gives a BundleContext
for each service method.
The BundleContext
of the client is used.Constructor and Description |
---|
DeclarationServiceFactory(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
DeclarationBuilderService |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<DeclarationBuilderService> registration) |
void |
start() |
void |
stop() |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<DeclarationBuilderService> registration,
DeclarationBuilderService service) |
public DeclarationServiceFactory(org.osgi.framework.BundleContext bundleContext)
public void start()
public void stop()
public DeclarationBuilderService getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<DeclarationBuilderService> registration)
getService
in interface org.osgi.framework.ServiceFactory<DeclarationBuilderService>
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<DeclarationBuilderService> registration, DeclarationBuilderService service)
ungetService
in interface org.osgi.framework.ServiceFactory<DeclarationBuilderService>
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.