Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Standard Edition

java.beans.beancontext
Interface BeanContext

All Known Subinterfaces:
BeanContextServices
All Known Implementing Classes:
BeanContextSupport

public interface BeanContext
extends BeanContextChild, Collection, DesignMode, Visibility

The BeanContext acts a logical heirarchical container for JavaBeans.

Since:
JDK1.2

Field Summary
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.
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Method Summary
 void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
          add a BeanContextMembershipListener
 URL getResource(String name, BeanContextChild bcc)
           
 InputStream getResourceAsStream(String name, BeanContextChild bcc)
           
 Object instantiateChild(String beanName)
          Instantiate the javaBean named as a child of this BeanContext
 void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
          remove a BeanContextMembershipListener
 
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.beans.DesignMode
isDesignTime, setDesignTime
 
Methods inherited from interface java.beans.Visibility
avoidingGui, dontUseGui, needsGui, okToUseGui
 

Field Detail

globalHierarchyLock

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 Detail

instantiateChild

public 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

getResourceAsStream

public InputStream getResourceAsStream(String name,
                                       BeanContextChild bcc)
                                throws IllegalArgumentException
Returns:
an InputStream to the named resource for the specified child

getResource

public URL getResource(String name,
                       BeanContextChild bcc)
                throws IllegalArgumentException
Returns:
a URL for the named resource for the specified child

addBeanContextMembershipListener

public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
add a BeanContextMembershipListener

removeBeanContextMembershipListener

public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
remove a BeanContextMembershipListener

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.