Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`OsgiBundleScope.BundleScopeServiceFactory(org.osgi.framework.ServiceFactory serviceFactory)`

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`

Constructor Detail

### OsgiBundleScope.BundleScopeServiceFactory

    public OsgiBundleScope.BundleScopeServiceFactory(org.osgi.framework.ServiceFactory serviceFactory)

Method Detail

### 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)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013. All Rights Reserved.