org.eclipse.gemini.blueprint.context.support.internal.scope
Class OsgiBundleScope.BundleScopeServiceFactory
java.lang.Object
org.eclipse.gemini.blueprint.context.support.internal.scope.OsgiBundleScope.BundleScopeServiceFactory
- All Implemented Interfaces:
- org.osgi.framework.ServiceFactory
- Enclosing class:
- OsgiBundleScope
public static class OsgiBundleScope.BundleScopeServiceFactory
- extends Object
- implements org.osgi.framework.ServiceFactory
Decorating ServiceFactory
used for supporting
'bundle' scoped localBeans.
- Author:
- Costin Leau
Method Summary |
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiBundleScope.BundleScopeServiceFactory
public OsgiBundleScope.BundleScopeServiceFactory(org.osgi.framework.ServiceFactory serviceFactory)
getService
public 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).
- Specified by:
getService
in interface org.osgi.framework.ServiceFactory
- See Also:
ServiceFactory.getService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration)
ungetService
public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
- Called if a bundle releases the service (stop the scope).
- Specified by:
ungetService
in interface org.osgi.framework.ServiceFactory
- See Also:
ServiceFactory.ungetService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration, java.lang.Object)
Copyright © 2006-2013. All Rights Reserved.