Home » openjdk-7 » java » beans » beancontext » [javadoc | source]
java.beans.beancontext
public interface: BeanContext [javadoc | source]

All Implemented Interfaces:
    Collection, DesignMode, BeanContextChild, Visibility

All Known Implementing Classes:
    BeanContextServicesSupport, BeanContextSupport, BeanContextServices

The BeanContext acts a logical hierarchical container for JavaBeans.

Field Summary
public static final  Object globalHierarchyLock    This global lock is used by both BeanContext and BeanContextServices implementors to serialize changes in a BeanContext hierarchy and any service requests etc. 
Method from java.beans.beancontext.BeanContext Summary:
addBeanContextMembershipListener,   getResource,   getResourceAsStream,   instantiateChild,   removeBeanContextMembershipListener
Method from java.beans.beancontext.BeanContext Detail:
 public  void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
    Adds the specified BeanContextMembershipListener to receive BeanContextMembershipEvents from this BeanContext whenever it adds or removes a child Component(s).
 public URL getResource(String name,
    BeanContextChild bcc) throws IllegalArgumentException
    Analagous to java.lang.ClassLoader.getResource(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
 public InputStream getResourceAsStream(String name,
    BeanContextChild bcc) throws IllegalArgumentException
    Analagous to java.lang.ClassLoader.getResourceAsStream(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
 public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException
    Instantiate the javaBean named as a child of this BeanContext. The implementation of the JavaBean is derived from the value of the beanName parameter, and is defined by the java.beans.Beans.instantiate() method.
 public  void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
    Removes the specified BeanContextMembershipListener so that it no longer receives BeanContextMembershipEvents when the child Component(s) are added or removed.