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 使它不再接收
BeanContextMembershipEvent s当孩子
Component (S)添加或删除。
|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
isDesignTime, setDesignTime
avoidingGui, dontUseGui, needsGui, okToUseGui
static 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
使它不再接收
BeanContextMembershipEvent
s当孩子
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.