com.googlecode.openbeans.beancontext
Class BeanContextServicesSupport.BCSSProxyServiceProvider

java.lang.Object
  extended by com.googlecode.openbeans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider
All Implemented Interfaces:
BeanContextServiceProvider, BeanContextServiceRevokedListener, EventListener
Enclosing class:
BeanContextServicesSupport

protected class BeanContextServicesSupport.BCSSProxyServiceProvider
extends Object
implements BeanContextServiceProvider, BeanContextServiceRevokedListener

This class implements the BeanContextServiceProvider interface by wrapping a BeanContextServices. All services registered in the BeanContextServices are accessible via this wrapper service provider.

This class is used by BeanContextServicesSupport to access services provided by its parent context (if there is one).


Method Summary
 Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
          Throws UnsupportedOperationException.
 Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector)
          Throws UnsupportedOperationException.
 void releaseService(BeanContextServices bcs, Object requestor, Object service)
          Delegate to the wrapped BeanContextServices.
 void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
          Throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                           Class serviceClass)
Throws UnsupportedOperationException.

Specified by:
getCurrentServiceSelectors in interface BeanContextServiceProvider

getService

public Object getService(BeanContextServices bcs,
                         Object requestor,
                         Class serviceClass,
                         Object serviceSelector)
Throws UnsupportedOperationException.

Specified by:
getService in interface BeanContextServiceProvider

releaseService

public void releaseService(BeanContextServices bcs,
                           Object requestor,
                           Object service)
Delegate to the wrapped BeanContextServices.

Specified by:
releaseService in interface BeanContextServiceProvider

serviceRevoked

public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
Throws UnsupportedOperationException.

Specified by:
serviceRevoked in interface BeanContextServiceRevokedListener


Copyright © 2013. All Rights Reserved.