| |
|
| java.beans.beancontext.BeanContext
All known Subclasses: java.beans.beancontext.BeanContextSupport,
Field Summary | |
final public static 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 Summary | |
void | addBeanContextMembershipListener(BeanContextMembershipListener bcml) Adds the specified BeanContextMembershipListener
to receive BeanContextMembershipEvents from
this BeanContext whenever it adds
or removes a child Component (s). | URL | getResource(String name, BeanContextChild bcc) Analagous to java.lang.ClassLoader.getResource() , this
method allows a BeanContext implementation to interpose
behavior between the child Component
and underlying ClassLoader . | InputStream | getResourceAsStream(String name, BeanContextChild bcc) Analagous to java.lang.ClassLoader.getResourceAsStream() ,
this method allows a BeanContext implementation
to interpose behavior between the child Component
and underlying ClassLoader .
Parameters: name - the resource name Parameters: bcc - the specified child an InputStream for reading the resource, or null if the resource could notbe found. | Object | instantiateChild(String beanName) Instantiate the javaBean named as a
child of this BeanContext . | void | removeBeanContextMembershipListener(BeanContextMembershipListener bcml) Removes the specified BeanContextMembershipListener
so that it no longer receives BeanContextMembershipEvent s
when the child Component (s) are added or removed. |
globalHierarchyLock | final public static Object globalHierarchyLock(Code) | | This global lock is used by both BeanContext
and BeanContextServices implementors
to serialize changes in a BeanContext
hierarchy and any service requests etc.
|
addBeanContextMembershipListener | void addBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code) | | Adds the specified BeanContextMembershipListener
to receive BeanContextMembershipEvents from
this BeanContext whenever it adds
or removes a child Component (s).
Parameters: bcml - the BeanContextMembershipListener to be added |
getResource | URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code) | | Analagous to java.lang.ClassLoader.getResource() , this
method allows a BeanContext implementation to interpose
behavior between the child Component
and underlying ClassLoader .
Parameters: name - the resource name Parameters: bcc - the specified child a URL for the named resource for the specified child IllegalArgumentException if the resource is not valid |
getResourceAsStream | InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code) | | Analagous to java.lang.ClassLoader.getResourceAsStream() ,
this method allows a BeanContext implementation
to interpose behavior between the child Component
and underlying ClassLoader .
Parameters: name - the resource name Parameters: bcc - the specified child an InputStream for reading the resource, or null if the resource could notbe found. IllegalArgumentException if the resource is not valid |
instantiateChild | Object instantiateChild(String beanName) throws IOException, ClassNotFoundException(Code) | | 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.
Parameters: beanName - The name of the JavaBean to instantiate as a child of this BeanContext IOException ClassNotFoundException if the class identifiedby the beanName parameter is not found |
removeBeanContextMembershipListener | void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code) | | Removes the specified BeanContextMembershipListener
so that it no longer receives BeanContextMembershipEvent s
when the child Component (s) are added or removed.
Parameters: bcml - the BeanContextMembershipListener to be removed |
|
|
|