public static class OsgiBundleScope.BundleScopeServiceFactory extends Object implements org.osgi.framework.ServiceFactory
ServiceFactory
used for supporting
'bundle' scoped localBeans.Constructor and Description |
---|
BundleScopeServiceFactory(org.osgi.framework.ServiceFactory serviceFactory) |
Modifier and Type | Method and Description |
---|---|
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
Called if a bundle requests a service for the first time (start the
scope).
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
Called if a bundle releases the service (stop the scope).
|
public BundleScopeServiceFactory(org.osgi.framework.ServiceFactory serviceFactory)
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
ServiceFactory.getService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration)
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
ServiceFactory.ungetService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration, java.lang.Object)
Copyright © 2006–2019. All rights reserved.