java.beans.beancontext
Interface BeanContextServices
All Known Implementing Classes: BeanContextServicesSupport
public interface BeanContextServices extends BeanContext , BeanContextServicesListener
The BeanContextServices interface provides a mechanism for a BeanContext
to expose generic "services" to the BeanContextChild objects within.
Methods inherited from interface java.util.Collection
add ,
addAll ,
clear ,
contains ,
containsAll ,
equals ,
hashCode ,
isEmpty ,
iterator ,
remove ,
removeAll ,
retainAll ,
size ,
toArray ,
toArray
addService
public boolean addService (Class serviceClass,
BeanContextServiceProvider serviceProvider)
add a service to this BeanContext
revokeService
public void revokeService (Class serviceClass,
BeanContextServiceProvider serviceProvider,
boolean revokeCurrentServicesNow)
remove a service from this BeanContext
hasService
public boolean hasService (Class serviceClass)
Returns: true iff the service is available.
getService
public Object getService (BeanContextChild child,
Object requestor,
Class serviceClass,
Object serviceSelector,
BeanContextServiceRevokedListener bcsrl)
throws TooManyListenersException
Returns: a reference to this context's named Service as requested or null
releaseService
public void releaseService (BeanContextChild child,
Object requestor,
Object service)
release the service reference
getCurrentServiceClasses
public Iterator getCurrentServiceClasses ()
return the currently available services
getCurrentServiceSelectors
public Iterator getCurrentServiceSelectors (Class serviceClass)
Returns: the currently available service selectors for the named serviceClass
addBeanContextServicesListener
public void addBeanContextServicesListener (BeanContextServicesListener bcsl)
add a BeanContextServicesListener to this BeanContext
removeBeanContextServicesListener
public void removeBeanContextServicesListener (BeanContextServicesListener bcsl)
remove a BeanContextServicesListener from this BeanContext
Submit a bug or feature Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.