public interface BeanContext extends BeanContextChild, Collection, DesignMode, Visibility
的beancontext作为JavaBeans的分层逻辑容器。
Beans,
BeanContextChild,
BeanContextMembershipListener,
PropertyChangeEvent,
DesignMode,
Visibility,
Collection
| Modifier and Type | Field and Description |
|---|---|
static Object |
globalHierarchyLock
全球锁的
BeanContext和
BeanContextServices实现用于序列化的变化在
BeanContext层次和任何服务请求等。
|
PROPERTYNAME| Modifier and Type | Method and Description |
|---|---|
void |
addBeanContextMembershipListener(BeanContextMembershipListener bcml)
添加指定的
BeanContextMembershipListener从这
BeanContext收到
BeanContextMembershipEvents每次添加或删除一个孩子
Component(S)。
|
URL |
getResource(String name, BeanContextChild bcc)
类似于
java.lang.ClassLoader.getResource(),此方法允许一个
BeanContext实施干预行为之间的孩子
Component和潜在的
ClassLoader。
|
InputStream |
getResourceAsStream(String name, BeanContextChild bcc)
类似于
java.lang.ClassLoader.getResourceAsStream(),此方法允许一个
BeanContext实施干预行为之间的孩子
Component和潜在的
ClassLoader。
|
Object |
instantiateChild(String beanName)
实例化JavaBean命名为本
BeanContext孩子。
|
void |
removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
移除指定的
BeanContextMembershipListener使它不再接收
BeanContextMembershipEvents当孩子
Component(S)添加或删除。
|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContextadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayisDesignTime, setDesignTimeavoidingGui, dontUseGui, needsGui, okToUseGuistatic final Object globalHierarchyLock
BeanContext和
BeanContextServices实现用于序列化的变化在
BeanContext层次和任何服务请求等。
Object instantiateChild(String beanName) throws IOException, ClassNotFoundException
BeanContext孩子。的实施源于对beanname参数的值,并通过
java.beans.Beans.instantiate()方法定义。
beanName -的名称来实例化这一
BeanContext孩子
BeanContext孩子
IOException -如果一个IO的问题发生
ClassNotFoundException -如果类的beanname参数确定是找不到的
InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException
java.lang.ClassLoader.getResourceAsStream(),此方法允许一个
BeanContext实施干预行为之间的孩子
Component和潜在的
ClassLoader。
name -资源名称
bcc -指定的孩子
InputStream,或
null如果资源不能被发现。
IllegalArgumentException -如果资源是无效的
URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException
java.lang.ClassLoader.getResource(),此方法允许一个
BeanContext实施干预行为之间的孩子
Component和潜在的
ClassLoader。
name -资源名称
bcc -指定的孩子
URL
IllegalArgumentException -如果资源是无效的
void addBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener从这
BeanContext收到
BeanContextMembershipEvents每次添加或删除一个孩子
Component(S)。
bcml - beancontextmembershiplistener加以补充
void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener使它不再接收
BeanContextMembershipEvents当孩子
Component(S)添加或删除。
bcml -
BeanContextMembershipListener被删除
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.