|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface BeanContext
BeanContext 是 JavaBean 的逻辑层次容器。
Beans,
BeanContextChild,
BeanContextMembershipListener,
PropertyChangeEvent,
java.beans.VetoableChangeEvent,
DesignMode,
Visibility,
Collection| 字段摘要 | |
|---|---|
static Object |
globalHierarchyLock
BeanContext 和 BeanContextServices 实现者均使用此全局锁定来序列化 BeanContext 中的更改和所有服务请求等。 |
| 从接口 java.beans.DesignMode 继承的字段 |
|---|
PROPERTYNAME |
| 方法摘要 | |
|---|---|
void |
addBeanContextMembershipListener(BeanContextMembershipListener bcml)
添加指定的 BeanContextMembershipListener,以便无论何时添加或移除一个子 Component,都可以接收来自此 BeanContext 的 BeanContextMembershipEvents。 |
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)
实例化指定为此 BeanContext 的一个子级的 javaBean。 |
void |
removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
移除指定的 BeanContextMembershipListener,以便在添加或移除子 Component 时不再接收 BeanContextMembershipEvent。 |
| 从接口 java.beans.beancontext.BeanContextChild 继承的方法 |
|---|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
| 从接口 java.util.Collection 继承的方法 |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| 从接口 java.beans.DesignMode 继承的方法 |
|---|
isDesignTime, setDesignTime |
| 从接口 java.beans.Visibility 继承的方法 |
|---|
avoidingGui, dontUseGui, needsGui, okToUseGui |
| 字段详细信息 |
|---|
static final Object globalHierarchyLock
BeanContext 和 BeanContextServices 实现者均使用此全局锁定来序列化 BeanContext 中的更改和所有服务请求等。
| 方法详细信息 |
|---|
Object instantiateChild(String beanName)
throws IOException,
ClassNotFoundException
BeanContext 的一个子级的 javaBean。JavaBean 的实现源自 beanName 参数的值,并由 java.beans.Beans.instantiate() 方法定义。
beanName - 要实例化为此 BeanContext 的子级的 JavaBean 的名称
IOException
ClassNotFoundException - 如果没有找到由 beanName 参数标识的类
IOException
ClassNotFoundException
InputStream getResourceAsStream(String name,
BeanContextChild bcc)
throws IllegalArgumentException
java.lang.ClassLoader.getResourceAsStream() 类似,此方法允许 BeanContext 实现协调子 Component 和基础 ClassLoader 之间的行为。
name - 资源的名称bcc - 指定的子级
InputStream,如果无法找到资源,则返回 null。
IllegalArgumentException - 如果资源无效
IllegalArgumentException
URL getResource(String name,
BeanContextChild bcc)
throws IllegalArgumentException
java.lang.ClassLoader.getResource() 类似,此方法允许 BeanContext 实现协调子 Component 和基础 ClassLoader 之间的行为。
name - 资源的名称bcc - 指定的子级
URL
IllegalArgumentException - 如果资源无效
IllegalArgumentExceptionvoid addBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener,以便无论何时添加或移除一个子 Component,都可以接收来自此 BeanContext 的 BeanContextMembershipEvents。
bcml - 要添加的 BeanContextMembershipListenervoid removeBeanContextMembershipListener(BeanContextMembershipListener bcml)
BeanContextMembershipListener,以便在添加或移除子 Component 时不再接收 BeanContextMembershipEvent。
bcml - 要移除的 BeanContextMembershipListener
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。