|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--java.beans.beancontext.BeanContextChildSupport
|
+--java.beans.beancontext.BeanContextSupport
|
+--java.beans.beancontext.BeanContextServicesSupport
このヘルパークラスは、java.beans.beancontext.BeanContextServices インタフェースのユーティリティの実装を提供します。
このクラスは、BeanContextServices インタフェースを直接実装するため、この実装をサブクラス化することによって、あるいは BeanContextProxy インタフェースを介してほかのインスタンスからこのクラスのインスタンスを委譲することによって使用することを目的としています。
| 内部クラスの概要 | |
protected class |
BeanContextServicesSupport.BCSSChild
|
protected class |
BeanContextServicesSupport.BCSSProxyServiceProvider
|
protected static class |
BeanContextServicesSupport.BCSSServiceProvider
サブクラスは、各 BeanContextServicesProvider に動作を追加するために、この入れ子にされたクラスをサブクラス化することができます。 |
| クラス java.beans.beancontext.BeanContextSupport から継承した内部クラス |
BeanContextSupport.BCSChild, BeanContextSupport.BCSIterator |
| フィールドの概要 | |
protected ArrayList |
bcsListeners
BeanContextServicesListener オブジェクトのリストです。 |
protected BeanContextServicesSupport.BCSSProxyServiceProvider |
proxy
BeanContextServiceProvider の委譲です。 |
protected int |
serializable
直列化可能な BeanContextServceProvider のインスタンスの数です。 |
protected HashMap |
services
protected transient HashMap services フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。 |
| クラス java.beans.beancontext.BeanContextSupport から継承したフィールド |
bcmListeners, children, designTime, locale, okToUseGui |
| クラス java.beans.beancontext.BeanContextChildSupport から継承したフィールド |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
| インタフェース java.beans.beancontext.BeanContext から継承したフィールド |
globalHierarchyLock |
| インタフェース java.beans.DesignMode から継承したフィールド |
PROPERTYNAME |
| コンストラクタの概要 | |
BeanContextServicesSupport()
ほかのオブジェクトの委譲でないインスタンスを生成します。 |
|
BeanContextServicesSupport(BeanContextServices peer)
ピアを使ってインスタンスを生成します。 |
|
BeanContextServicesSupport(BeanContextServices peer,
Locale lcle)
指定されたロケールを使ってインスタンスを生成します。 |
|
BeanContextServicesSupport(BeanContextServices peer,
Locale lcle,
boolean dtime)
指定された Locale を使って設計モードでインスタンスを生成します。 |
|
BeanContextServicesSupport(BeanContextServices peer,
Locale lcle,
boolean dTime,
boolean visible)
BeanContextServicesSupport のインスタンスを生成します。 |
|
| メソッドの概要 | |
void |
addBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServicesListener を追加します。 |
boolean |
addService(Class serviceClass,
BeanContextServiceProvider bcsp)
サービスを追加します。 |
protected boolean |
addService(Class serviceClass,
BeanContextServiceProvider bcsp,
boolean fireEvent)
サービスを追加します。 |
protected void |
bcsPreDeserializationHook(ObjectInputStream ois)
BeanContextSupport readObject が子を直列化する前に、BeanContextSupport readObject によって呼び出されます。 |
protected void |
bcsPreSerializationHook(ObjectOutputStream oos)
BeanContextSupport writeObject が子を直列化する前に、BeanContextSupport writeObject によって呼び出されます。 |
protected void |
childJustRemovedHook(Object child,
BeanContextSupport.BCSChild bcsc)
子が正常に削除されたあとで、スーパークラスの子削除操作から呼び出されます。 |
protected BeanContextSupport.BCSChild |
createBCSChild(Object targetChild,
Object peer)
サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加する add() メソッドやほかの Collection メソッドをオーバーライドすることなく、Child の独自のサブクラスを挿入することができます。 |
protected BeanContextServicesSupport.BCSSServiceProvider |
createBCSSServiceProvider(Class sc,
BeanContextServiceProvider bcsp)
サブクラスはこのメソッドをオーバーライドすることにより、インスタンス生成のために addService() をオーバーライドすることなく、BCSSServiceProvider の新しいサブクラスを生成することができます。 |
protected void |
fireServiceAdded(BeanContextServiceAvailableEvent bcssae)
新しいサービスが使用可能になったことを示す BeanContextServiceAvailableEvent をトリガーします。 |
protected void |
fireServiceAdded(Class serviceClass)
新しいサービスを通知する BeanContextServiceEvent をトリガーします。 |
protected void |
fireServiceRevoked(BeanContextServiceRevokedEvent bcsre)
サービスの取り消しを通知する BeanContextServiceEvent をトリガーします。 |
protected void |
fireServiceRevoked(Class serviceClass,
boolean revokeNow)
特定のサービスが使用不可になったことを通知する BeanContextServiceRevokedEvent をトリガーします。 |
BeanContextServices |
getBeanContextServicesPeer()
この BeanContextServicesSupport に関連した BeanContextServices を取得します。 |
protected static BeanContextServicesListener |
getChildBeanContextServicesListener(Object child)
指定された子の BeanContextServicesListener (存在する場合) を取得します。 |
Iterator |
getCurrentServiceClasses()
このコンテキストに現在使用可能なサービスを取得します。 |
Iterator |
getCurrentServiceSelectors(Class serviceClass)
基本的な BeanContextServiceProvider の getCurrentServiceSelectors() を呼び出すことによって、指定されたサービスのサービス依存サービスパラメータ (Service Selectors) のリストを取得します。 |
Object |
getService(BeanContextChild child,
Object requestor,
Class serviceClass,
Object serviceSelector,
BeanContextServiceRevokedListener bcsrl)
サービスを取得します。 |
boolean |
hasService(Class serviceClass)
サービスを持ちます。 |
void |
initialize()
サブクラスの一時的な状態を初期化するために、作成時および直列化復元時に BeanContextSupport のスーパークラスによって呼び出されます。 |
protected void |
initializeBeanContextResources()
入れ子になっている BeanContext から取得したリソースを割り当てるよう BeanContextChild に通知するために、setBeanContext から呼び出されます。 |
protected void |
releaseBeanContextResources()
入れ子になっている BeanContext から取得したリソースを解放するよう BeanContextChild に通知するために、setBeanContext から呼び出されます。 |
void |
releaseService(BeanContextChild child,
Object requestor,
Object service)
サービスを解放します。 |
void |
removeBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServicesListener を削除します。 |
void |
revokeService(Class serviceClass,
BeanContextServiceProvider bcsp,
boolean revokeCurrentServicesNow)
サービスを削除します。 |
void |
serviceAvailable(BeanContextServiceAvailableEvent bcssae)
BeanContextServicesListener のコールバックです。 |
void |
serviceRevoked(BeanContextServiceRevokedEvent bcssre)
BeanContextServicesListener のコールバックです。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース java.beans.beancontext.BeanContext から継承したメソッド |
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener |
| インタフェース java.beans.beancontext.BeanContextChild から継承したメソッド |
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
| インタフェース java.util.Collection から継承したメソッド |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| インタフェース java.beans.DesignMode から継承したメソッド |
isDesignTime, setDesignTime |
| インタフェース java.beans.Visibility から継承したメソッド |
avoidingGui, dontUseGui, needsGui, okToUseGui |
| フィールドの詳細 |
protected transient HashMap services
protected transient HashMap services フィールドへのすべてのアクセスは、そのオブジェクトについて同期がとられます。protected transient int serializable
protected transient BeanContextServicesSupport.BCSSProxyServiceProvider proxy
protected transient ArrayList bcsListeners
| コンストラクタの詳細 |
public BeanContextServicesSupport(BeanContextServices peer,
Locale lcle,
boolean dTime,
boolean visible)
BeanContextServicesSupport のインスタンスを生成します。
peer - 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle - この BeanContext の現在の Localedtime - 初期状態。設計モードの場合は true、実行時モードの場合は falsevisible - 初期状態での可視性
public BeanContextServicesSupport(BeanContextServices peer,
Locale lcle,
boolean dtime)
peer - 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle - この BeanContext の現在の Localedtime - 初期状態。設計モードの場合は true、実行時モードの場合は false
public BeanContextServicesSupport(BeanContextServices peer,
Locale lcle)
peer - 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle - この BeanContext の現在の Localepublic BeanContextServicesSupport(BeanContextServices peer)
peer - 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nullpublic BeanContextServicesSupport()
| メソッドの詳細 |
public void initialize()
BeanContextSupport 内の initializepublic BeanContextServices getBeanContextServicesPeer()
protected BeanContextSupport.BCSChild createBCSChild(Object targetChild,
Object peer)
サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加する add() メソッドやほかの Collection メソッドをオーバーライドすることなく、Child の独自のサブクラスを挿入することができます。
BeanContextSupport 内の createBCSChildtargetChild - Child を作成する子peer - targetChild とピアが BeanContextProxy によって関連付けられている場合はそのピア
protected BeanContextServicesSupport.BCSSServiceProvider createBCSSServiceProvider(Class sc,
BeanContextServiceProvider bcsp)
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServices 内の addBeanContextServicesListenerjava.beans.beancontext.BeanContextServices からコピーされたタグ:bcsl - 追加する BeanContextServicesListenerpublic void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServices 内の removeBeanContextServicesListenerjava.beans.beancontext.BeanContextServices からコピーされたタグ:bcsl - このコンテキストから削除する BeanContextServicesListener
public boolean addService(Class serviceClass,
BeanContextServiceProvider bcsp)
BeanContextServices 内の addServicejava.beans.beancontext.BeanContextServices からコピーされたタグ:serviceClass - 追加するサービスserviceProvider - サービスに関連した BeanContextServiceProvider
protected boolean addService(Class serviceClass,
BeanContextServiceProvider bcsp,
boolean fireEvent)
public void revokeService(Class serviceClass,
BeanContextServiceProvider bcsp,
boolean revokeCurrentServicesNow)
BeanContextServices 内の revokeServicejava.beans.beancontext.BeanContextServices からコピーされたタグ:serviceClass - この BeanContextServices から呼び出すサービスserviceProvider - 無効になるこの特定のサービスに関連した BeanContextServiceProviderrevokeCurrentServicesNow - true の値は、BeanContextServiceProvider または BeanContextServices が、指定されたサービスへの現在未処理の参照すべてに対してサービスを直ちに終了しようとしている例外状況を示すpublic boolean hasService(Class serviceClass)
BeanContextServices 内の hasServicejava.beans.beancontext.BeanContextServices からコピーされたタグ:serviceClass - 該当するサービス
public Object getService(BeanContextChild child,
Object requestor,
Class serviceClass,
Object serviceSelector,
BeanContextServiceRevokedListener bcsrl)
throws TooManyListenersException
BeanContextServices 内の getServicejava.beans.beancontext.BeanContextServices からコピーされたタグ:child - この要求に関連した BeanContextChildrequestor - サービスを要求するオブジェクトserviceClass - 要求されたサービスのクラスserviceSelector - サービス依存パラメータbcsrl - サービスを後で無効にする必要がある場合に通知する BeanContextServiceRevokedListenernullTooManyListenersException -
public void releaseService(BeanContextChild child,
Object requestor,
Object service)
BeanContextServices 内の releaseServicejava.beans.beancontext.BeanContextServices からコピーされたタグ:child - BeanContextChildrequestor - 要求者service - サービスpublic Iterator getCurrentServiceClasses()
BeanContextServices の記述: BeanContextServices 内の getCurrentServiceClassespublic Iterator getCurrentServiceSelectors(Class serviceClass)
BeanContextServices の記述: BeanContextServices 内の getCurrentServiceSelectorspublic void serviceAvailable(BeanContextServiceAvailableEvent bcssae)
BeanContextServicesListener 内の serviceAvailableBeanContextChildSupport 内の serviceAvailablejava.beans.beancontext.BeanContextServicesListener からコピーされたタグ:bcsae - BeanContextServiceAvailableEventpublic void serviceRevoked(BeanContextServiceRevokedEvent bcssre)
BeanContextServiceRevokedListener 内の serviceRevokedBeanContextChildSupport 内の serviceRevokedjava.beans.beancontext.BeanContextServiceRevokedListener からコピーされたタグ:bcsre - このリスナーによって受信された BeanContextServiceRevokedEventprotected static final BeanContextServicesListener getChildBeanContextServicesListener(Object child)
child - 指定された子
protected void childJustRemovedHook(Object child,
BeanContextSupport.BCSChild bcsc)
BeanContextSupport 内の childJustRemovedHookprotected void releaseBeanContextResources()
BeanContextChildSupport 内の releaseBeanContextResourcesprotected void initializeBeanContextResources()
BeanContextChildSupport 内の initializeBeanContextResourcesprotected final void fireServiceAdded(Class serviceClass)
protected final void fireServiceAdded(BeanContextServiceAvailableEvent bcssae)
bcssae - BeanContextServiceAvailableEventprotected final void fireServiceRevoked(BeanContextServiceRevokedEvent bcsre)
bcsre - BeanContextServiceRevokedEvent
protected final void fireServiceRevoked(Class serviceClass,
boolean revokeNow)
protected void bcsPreSerializationHook(ObjectOutputStream oos)
throws IOException
BeanContextSupport 内の bcsPreSerializationHook
protected void bcsPreDeserializationHook(ObjectInputStream ois)
throws IOException,
ClassNotFoundException
BeanContextSupport 内の bcsPreDeserializationHook
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.