目录搜索
文字
分享


JavaTM 2 Platform
Standard Ed. 6

接口 java.beans.beancontext.BeanContextChild
的使用

使用 BeanContextChild 的软件包
java.beans.beancontext 提供与 bean 上下文有关的类和接口。 
 

java.beans.beancontext 中 BeanContextChild 的使用
 

java.beans.beancontext 中 BeanContextChild 的子接口
 interface BeanContext
           BeanContext 是 JavaBean 的逻辑层次容器。
 interface BeanContextServices
           BeanContextServices 接口为 BeanContext 提供某种机制,将一般的 "services" 向其中的 BeanContextChild 对象公开。
 

实现 BeanContextChild 的 java.beans.beancontext 中的类
 class BeanContextChildSupport
           这是一个为实现 BeanContextChild 协议提供支持的一般支持类。
 class BeanContextServicesSupport
           此帮助器类提供 java.beans.beancontext.BeanContextServices 接口的实用工具实现。
 class BeanContextSupport
          此帮助器类提供 java.beans.beancontext.BeanContext 接口的实用工具实现。
 

声明为 BeanContextChild 的 java.beans.beancontext 中的字段
 BeanContextChild BeanContextChildSupport.beanContextChildPeer
          在其中嵌套此 BeanContextChildBeanContext
 

返回 BeanContextChild 的 java.beans.beancontext 中的方法
 BeanContextChild BeanContextChildSupport.getBeanContextChildPeer()
          获得与此 BeanContextChildSupport 相关联的 BeanContextChild
 BeanContextChild BeanContextProxy.getBeanContextProxy()
          获得与此对象相关联的 BeanContextChild(或子接口)。
protected static BeanContextChild BeanContextSupport.getChildBeanContextChild(Object child)
          与指定 Child 相关联的 BeanContextChild(如果有)。
 

参数类型为 BeanContextChild 的 java.beans.beancontext 中的方法
 URL BeanContext.getResource(String name, BeanContextChild bcc)
          与 java.lang.ClassLoader.getResource() 类似,此方法允许 BeanContext 实现协调子 Component 和基础 ClassLoader 之间的行为。
 URL BeanContextSupport.getResource(String name, BeanContextChild bcc)
           
 InputStream BeanContext.getResourceAsStream(String name, BeanContextChild bcc)
          与 java.lang.ClassLoader.getResourceAsStream() 类似,此方法允许 BeanContext 实现协调子 Component 和基础 ClassLoader 之间的行为。
 InputStream BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc)
           
 Object BeanContextServices.getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)
          BeanContextChild(或任意与 BeanContextChild 关联的对象)可以通过调用此方法从其嵌套 BeanContextServices 中获得对当前已注册服务的引用。
 Object BeanContextServicesSupport.getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)
          获得一个可被委托的服务。
 void BeanContextServices.releaseService(BeanContextChild child, Object requestor, Object service)
          通过在基础 BeanContextServiceProvider 上调用 releaseService() 释放 BeanContextChild(或与 BeanContextChild 关联的任意对象)对指定服务的引用。
 void BeanContextServicesSupport.releaseService(BeanContextChild child, Object requestor, Object service)
          释放服务。
 

参数类型为 BeanContextChild 的 java.beans.beancontext 中的构造方法
BeanContextChildSupport(BeanContextChild bcc)
          构造一个 BeanContextChildSupport,其中 JavaBean 组件自身实现 BeanContextChild 并封装它,并将该接口委托给此实现
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。