All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface java.beans.beancontext.BeanContext

public interface BeanContext
extends BeanContextChild, Collection

The BeanContext acts a logical heirarchical container for JavaBeans, providing a general services mechanism.

Since:
JDK1.2

Variable Index

 o LOCALE_PROPERTYNAME

the value of the propertyName field fired in a PropertyChangeEvent as a result of calling setLocale()

Method Index

 o addBeanContextMembershipListener(BeanContextMembershipListener)
add a BeanContextMembershipListener
 o getResource(String, BeanContextChild)
 o getResourceAsStream(String, BeanContextChild)
 o getService(Class, BeanContextChild)

BeanContexts may choose to provide a wide variety of "services" to their children by delegating a particular behavior to another object.

 o hasService(Class)
 o instantiateChild(String)
Instantiate the javaBean named as a child of this BeanContext
 o removeBeanContextMembershipListener(BeanContextMembershipListener)
remove a BeanContextMembershipListener

Variables

 o LOCALE_PROPERTYNAME
public static final String LOCALE_PROPERTYNAME

the value of the propertyName field fired in a PropertyChangeEvent as a result of calling setLocale()

Methods

 o instantiateChild
public abstract Object instantiateChild(String beanName) throws IOException, ClassNotFoundException
Instantiate the javaBean named as a child of this BeanContext

Parameters:
beanName - The name of the JavaBean to instantiate as a child of this BeanContext
 o getService
public abstract Object getService(Class serviceClass,
                                  BeanContextChild bcc)

BeanContexts may choose to provide a wide variety of "services" to their children by delegating a particular behavior to another object. These services would be realized in the form of references to instances of either Java classes or interfaces.

A BeanContext may delegate such requests to their own nesting contexts to be satisfied.

Returns:
a reference to this context's service as requested or null
 o hasService
public abstract boolean hasService(Class serviceClass)
Returns:
if the BeanContext supports this delegate type.
 o getResourceAsStream
public abstract InputStream getResourceAsStream(String name,
                                                BeanContextChild bcc) throws IllegalArgumentException
Returns:
an InputStream to the named resource for the specified child
 o getResource
public abstract URL getResource(String name,
                                BeanContextChild bcc) throws IllegalArgumentException
Returns:
a URL for the named resource for the specified child
 o addBeanContextMembershipListener
public abstract void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
add a BeanContextMembershipListener

 o removeBeanContextMembershipListener
public abstract void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
remove a BeanContextMembershipListener


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature