Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.beans.beancontext
Class BeanContextServicesSupport.BCSSProxyServiceProvider  view BeanContextServicesSupport.BCSSProxyServiceProvider download BeanContextServicesSupport.BCSSProxyServiceProvider.java

java.lang.Object
  extended byjava.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider
All Implemented Interfaces:
BeanContextServiceProvider, BeanContextServiceRevokedListener, java.util.EventListener
Enclosing class:
BeanContextServicesSupport

protected class BeanContextServicesSupport.BCSSProxyServiceProvider
extends java.lang.Object
implements BeanContextServiceProvider, BeanContextServiceRevokedListener


Field Summary
private static long serialVersionUID
           
 
Constructor Summary
private BeanContextServicesSupport.BCSSProxyServiceProvider()
           
 
Method Summary
 java.util.Iterator getCurrentServiceSelectors(BeanContextServices bcs, java.lang.Class serviceClass)
          Get a list of valid service selectors for the specified service class.
 java.lang.Object getService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Class serviceClass, java.lang.Object serviceSelector)
          Get a service.
 void releaseService(BeanContextServices bcs, java.lang.Object requestor, java.lang.Object service)
          Release the service.
 void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
          Called by BeanContextServices.revokeService() to indicate that a service has been revoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BeanContextServicesSupport.BCSSProxyServiceProvider

private BeanContextServicesSupport.BCSSProxyServiceProvider()
Method Detail

getCurrentServiceSelectors

public java.util.Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                                     java.lang.Class serviceClass)
                                              throws gnu.classpath.NotImplementedException
Description copied from interface: BeanContextServiceProvider
Get a list of valid service selectors for the specified service class. This method is called from BeanContextServices.getCurrentServiceSelectors().

If the specified service class does not have a finite number of valid service selectors, it should return null. If it takes a general Integer parameter, for example, you may as well return null or the poor soul who called this method will be iterating all day.

If it has no valid service selectors, it should still return an empty Iterator.

Specified by:
getCurrentServiceSelectors in interface BeanContextServiceProvider

getService

public java.lang.Object getService(BeanContextServices bcs,
                                   java.lang.Object requestor,
                                   java.lang.Class serviceClass,
                                   java.lang.Object serviceSelector)
                            throws gnu.classpath.NotImplementedException
Description copied from interface: BeanContextServiceProvider
Get a service. Called from BeanContextServices.getService().

If the requested service class is not available, or if this BeanContextServiceProvider chooses not honor the request for some reason, then this method will return null.

This method may throw unchecked exceptions, so watch out.

Specified by:
getService in interface BeanContextServiceProvider

releaseService

public void releaseService(BeanContextServices bcs,
                           java.lang.Object requestor,
                           java.lang.Object service)
                    throws gnu.classpath.NotImplementedException
Description copied from interface: BeanContextServiceProvider
Release the service.

Called by BeanContextServices.releaseService().

Most BeanContextServiceProviders won't have to do anything here.

Specified by:
releaseService in interface BeanContextServiceProvider

serviceRevoked

public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)
                    throws gnu.classpath.NotImplementedException
Description copied from interface: BeanContextServiceRevokedListener
Called by BeanContextServices.revokeService() to indicate that a service has been revoked. If you have a reference to such a service, it should be discarded and may no longer function properly. getService() will no longer work on the specified service class after this event has been fired.

Specified by:
serviceRevoked in interface BeanContextServiceRevokedListener