java.beans.beancontext
Class BeanContextServicesSupport.BCSSProxyServiceProvider

java.lang.Object
java.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
BeanContextServicesSupport.BCSSProxyServiceProvider
private BeanContextServicesSupport.BCSSProxyServiceProvider()
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