インタフェース
java.beans.beancontext.BeanContextChildの使用
BeanContextChildを使用するパッケージ
-
java.beans.beancontextでのBeanContextChildの使用
java.beans.beancontextのBeanContextChildのサブインタフェース修飾子と型インタフェース説明interface
BeanContextはJavaBeansの論理階層コンテナとして機能します。interface
BeanContextServicesインタフェースは、BeanContextChildオブジェクトがジェネリック・サービスを受けられるようにするためのメカニズムをBeanContextに提供します。BeanContextChildを実装しているjava.beans.beancontextのクラス修飾子と型クラス説明class
BeanContextChildプロトコルの実装をサポートするための一般的なサポート・クラスです。class
このヘルパー・クラスは、java.beans.beancontext.BeanContextServicesインタフェースのユーティリティの実装を提供します。class
このヘルパー・クラスは、java.beans.beancontext.BeanContextインタフェースのユーティリティの実装を提供します。BeanContextChildとして宣言されたjava.beans.beancontextのフィールド修飾子と型フィールド説明BeanContextChildSupport.beanContextChildPeer
このBeanContextChild
が入れ子になっているBeanContext
。修飾子と型メソッド説明BeanContextChildSupport.getBeanContextChildPeer()
BeanContextProxy.getBeanContextProxy()
このオブジェクトに関連付けられているBeanContextChild
(またはサブインタフェース)を取得します。protected static final BeanContextChild
BeanContextSupport.getChildBeanContextChild
(Object child) 指定された子のBeanContextChild (存在する場合)を取得します。型BeanContextChildのパラメータを持つjava.beans.beancontextのメソッド修飾子と型メソッド説明BeanContext.getResource
(String name, BeanContextChild bcc) java.lang.ClassLoader.getResource()
と同様に、このメソッドを使用すると、子Component
と基礎となるClassLoader
の間の動作をBeanContext
実装で置き換えることができます。BeanContextSupport.getResource
(String name, BeanContextChild bcc) BeanContext.getResourceAsStream
(String name, BeanContextChild bcc) java.lang.ClassLoader.getResourceAsStream()
と同様に、このメソッドを使用すると、子Component
と基礎となるClassLoader
の間の動作をBeanContext
実装で置き換えることができます。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) サービスを解放します。型BeanContextChildのパラメータを持つjava.beans.beancontextのコンストラクタ修飾子コンストラクタ説明JavaBeanコンポーネント自体がBeanContextChildを実装し、これをカプセル化しているBeanContextChildSupportを構築します。BeanContextChildインタフェースはこの実装に委譲されます。