接口的使用
java.beans.beancontext.BeanContextChild
使用 BeanContextChild 的包
-
BeanContextChild 在 java.beans.beancontext 中的用法
修饰符和类型接口描述interfaceBeanContext 充当 JavaBeans 的逻辑分层容器。interfaceBeanContextServices 接口为 BeanContext 提供了一种机制,以向其中的 BeanContextChild 对象公开通用“服务”。修饰符和类型类描述class这是一个通用支持类,为实现 BeanContextChild 协议提供支持。class这个帮助器类提供了 java.beans.beancontext.BeanContextServices 接口的实用程序实现。class这个帮助器类提供了 java.beans.beancontext.BeanContext 接口的实用程序实现。修饰符和类型Field描述BeanContextChildSupport.beanContextChildPeer这个BeanContextChild嵌套在其中的BeanContext。修饰符和类型方法描述BeanContextChildSupport.getBeanContextChildPeer()获取与此BeanContextChildSupport关联的BeanContextChild。BeanContextProxy.getBeanContextProxy()获取与此对象关联的BeanContextChild(或子接口)。protected static final BeanContextChildBeanContextSupport.getChildBeanContextChild(Object child) 获取指定子项的 BeanContextChild(如果有)java.beans.beancontext 中的方法,参数类型为 BeanContextChild修饰符和类型方法描述BeanContext.getResource(String name, BeanContextChild bcc) 类似于java.lang.ClassLoader.getResource(),此方法允许BeanContext实现在子Component和底层ClassLoader之间插入行为。BeanContextSupport.getResource(String name, BeanContextChild bcc) BeanContext.getResourceAsStream(String name, BeanContextChild bcc) 类似于java.lang.ClassLoader.getResourceAsStream(),此方法允许BeanContext实现在子Component和底层ClassLoader之间插入行为。BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc) BeanContextServices.getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) BeanContextChild或与BeanContextChild关联的任意对象可以通过调用此方法从其嵌套BeanContextServices获取对当前注册服务的引用。BeanContextServicesSupport.getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) 获得可以委托的服务voidBeanContextServices.releaseService(BeanContextChild child, Object requestor, Object service) 通过在底层BeanContextServiceProvider上调用 releaseService() 来释放BeanContextChild的(或任何与 BeanContextChild 关联的任意对象)对指定服务的引用。voidBeanContextServicesSupport.releaseService(BeanContextChild child, Object requestor, Object service) 发布服务java.beans.beancontext 中的构造函数,参数类型为 BeanContextChild修饰符构造方法描述构造一个 BeanContextChildSupport,其中 JavaBean 组件本身实现了 BeanContextChild,并将其封装,将该接口委托给该实现