API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans.beancontext. BeanContextServices View Source
Author(s)
Since
Version
Serial
Hierarchy
 BeanContextChild
      BeanContext
          BeanContextServices
Subinterfaces
Description
public interface BeanContextServices
  The BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within.
See also:   
Methods
Hide/Show inherited methods
public void addBeanContextServicesListener (BeanContextServicesListener bcsl)
  Adds a BeanContextServicesListener to this BeanContext
public boolean addService (Class serviceClass, BeanContextServiceProvider serviceProvider)
  Adds a service to this BeanContext.
public Iterator getCurrentServiceClasses ()
  Gets the currently available services for this context.
public Iterator getCurrentServiceSelectors (Class serviceClass)
  Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
public Object getService (BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
  A BeanContextChild, or any arbitrary object associated with a BeanContextChild, may obtain a reference to a currently registered service from its nesting BeanContextServices via invocation of this method.
public boolean hasService (Class serviceClass)
  Reports whether or not a given service is currently available from this context.
public void releaseService (BeanContextChild child, Object requestor, Object service)
  Releases a BeanContextChild's (or any arbitrary object associated with a BeanContextChild) reference to the specified service by calling releaseService() on the underlying BeanContextServiceProvider.
public void removeBeanContextServicesListener (BeanContextServicesListener bcsl)
  Removes a BeanContextServicesListener from this BeanContext
public void revokeService (Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)
  BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method.
Fields
Hide/Show inherited fields
publicfinalstatic Object globalHierarchyLock [Inherited From BeanContext]
This global lock is used by both BeanContext and BeanContextServices implementors to serialize changes in a BeanContext hierarchy and any service requests etc.
publicfinalstatic String PROPERTYNAME = "designTime" [Inherited From BeanContext]
The standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar