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