インタフェース
java.beans.beancontext.BeanContextChildの使用
| パッケージ | 説明 |
|---|---|
| java.beans.beancontext |
Beanコンテキストに関連するクラスおよびインタフェースを提供します。
|
-
java.beans.beancontextでのBeanContextChildの使用
java.beans.beancontextでのBeanContextChildのサブインタフェース 修飾子と型 インタフェース 説明 interfaceBeanContextBeanContextはJavaBeansの論理階層コンテナとして機能します。interfaceBeanContextServicesBeanContextServicesインタフェースは、BeanContextChildオブジェクトがジェネリック・サービスを受けられるようにするためのメカニズムをBeanContextに提供します。BeanContextChildを実装しているjava.beans.beancontextのクラス 修飾子と型 クラス 説明 classBeanContextChildSupportBeanContextChildプロトコルの実装をサポートするための一般的なサポート・クラスです。classBeanContextServicesSupportこのヘルパー・クラスは、java.beans.beancontext.BeanContextServicesインタフェースのユーティリティの実装を提供します。classBeanContextSupportこのヘルパー・クラスは、java.beans.beancontext.BeanContextインタフェースのユーティリティの実装を提供します。BeanContextChildとして宣言されたjava.beans.beancontextのフィールド 修飾子と型 フィールド 説明 BeanContextChildBeanContextChildSupport. beanContextChildPeerこのBeanContextChildが入れ子になっているBeanContext。BeanContextChildを返すjava.beans.beancontextのメソッド 修飾子と型 メソッド 説明 BeanContextChildBeanContextChildSupport. getBeanContextChildPeer()このBeanContextChildSupportに関連付けられているBeanContextChildを取得します。BeanContextChildBeanContextProxy. getBeanContextProxy()このオブジェクトに関連付けられているBeanContextChild(またはサブインタフェース)を取得します。protected static BeanContextChildBeanContextSupport. getChildBeanContextChild(Object child)指定された子のBeanContextChild (存在する場合)を取得します。BeanContextChild型のパラメータを持つjava.beans.beancontextのメソッド 修飾子と型 メソッド 説明 URLBeanContext. getResource(String name, BeanContextChild bcc)java.lang.ClassLoader.getResource()と同じように、このメソッドによってBeanContext実装で子のComponentとベースとなるClassLoaderの間に動作を挿入できます。URLBeanContextSupport. getResource(String name, BeanContextChild bcc)InputStreamBeanContext. getResourceAsStream(String name, BeanContextChild bcc)java.lang.ClassLoader.getResourceAsStream()と同じように、このメソッドによってBeanContext実装で子のComponentとベースとなるClassLoaderの間に動作を挿入できます。InputStreamBeanContextSupport. getResourceAsStream(String name, BeanContextChild bcc)ObjectBeanContextServices. getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)BeanContextChild、またはBeanContextChildに関連した任意のオブジェクトは、このメソッドを呼び出すことによって、入れ子になっているBeanContextServicesから現在登録されているサービスへの参照を取得できます。ObjectBeanContextServicesSupport. 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のコンストラクタ コンストラクタ 説明 BeanContextChildSupport(BeanContextChild bcc)JavaBeanコンポーネント自体がBeanContextChildを実装し、これをカプセル化しているBeanContextChildSupportを構築します。BeanContextChildインタフェースはこの実装に委譲されます。