The BeanContext acts a logical hierarchical container for JavaBeans.
java.beans.Beans
, java.beans.beancontext.BeanContextChild
, java.beans.beancontext.BeanContextMembershipListener
, java.beans.PropertyChangeEvent
, java.beans.DesignMode
, java.beans.Visibility
, java.util.Collection
Modifier and Type | Field and Description |
---|---|
public static final Object | globalHierarchyLock
This global lock is used by both |
Modifier and Type | Method and Description |
---|---|
public void | addBeanContextMembershipListener(BeanContextMembershipListener
the BeanContextMembershipListener to be added bcml)Adds the specified |
public URL | Returns: aURL for the named
resource for the specified childthe resource name name, BeanContextChild the specified child bcc)Analogous to |
public InputStream | Returns: anInputStream for reading the resource,
or null if the resource could not
be found.the resource name name, BeanContextChild the specified child bcc)Analogous to |
public Object | Returns: a javaBean named as a child of thisBeanContext The name of the JavaBean to instantiate
as a child of this beanName)BeanContext Instantiate the javaBean named as a
child of this |
public void | removeBeanContextMembershipListener(BeanContextMembershipListener
the bcml)BeanContextMembershipListener
to be removedRemoves the specified |
globalHierarchyLock | back to summary |
---|---|
public static final Object globalHierarchyLock This global lock is used by both |
addBeanContextMembershipListener | back to summary |
---|---|
public void addBeanContextMembershipListener(BeanContextMembershipListener bcml) Adds the specified
|
getResource | back to summary |
---|---|
public URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException Analogous to
|
getResourceAsStream | back to summary |
---|---|
public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException Analogous to
|
instantiateChild | back to summary |
---|---|
public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException Instantiate the javaBean named as a
child of this
|
removeBeanContextMembershipListener | back to summary |
---|---|
public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml) Removes the specified
|