インタフェース
java.beans.beancontext.BeanContextChildの使用
-
java.beans.beancontextでのBeanContextChildの使用
修飾子と型インタフェース説明interface
BeanContextはJavaBeansの論理階層コンテナとして機能します。interface
BeanContextServicesインタフェースは、BeanContextChildオブジェクトがジェネリック・サービスを受けられるようにするためのメカニズムをBeanContextに提供します。修飾子と型クラス説明class
BeanContextChildプロトコルの実装をサポートするための一般的なサポート・クラスです。class
このヘルパー・クラスは、java.beans.beancontext.BeanContextServicesインタフェースのユーティリティの実装を提供します。class
このヘルパー・クラスは、java.beans.beancontext.BeanContextインタフェースのユーティリティの実装を提供します。修飾子と型フィールド説明BeanContextChildSupport.beanContextChildPeer
このBeanContextChild
が入れ子になっているBeanContext
。修飾子と型メソッド説明BeanContextChildSupport.getBeanContextChildPeer()
このBeanContextChildSupport
に関連付けられているBeanContextChild
を取得します。BeanContextProxy.getBeanContextProxy()
このオブジェクトに関連付けられているBeanContextChild
(またはサブインタフェース)を取得します。protected static final BeanContextChild
BeanContextSupport.getChildBeanContextChild
(Object child) 指定された子の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) サービスを取得します。そのサービスは委譲されることもあります。void
BeanContextServices.releaseService
(BeanContextChild child, Object requestor, Object service) ベースとなるBeanContextServiceProvider
に対してreleaseService()を呼び出すことにより、BeanContextChild
(またはBeanContextChildに関連した任意のオブジェクト)の、指定されたサービスへの参照を解放します。void
BeanContextServicesSupport.releaseService
(BeanContextChild child, Object requestor, Object service) サービスを解放します。修飾子コンストラクタ説明JavaBeanコンポーネント自体がBeanContextChildを実装し、これをカプセル化しているBeanContextChildSupportを構築します。BeanContextChildインタフェースはこの実装に委譲されます。