|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
|
protected BeanContextServicesSupport.BCSSProxyServiceProvider |
proxy
|
protected int |
serializable
|
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 |
コンストラクタの概要 | |
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 から呼び出されます。 |
protected void |
bcsPreSerializationHook(ObjectOutputStream oos)
子の直列化の前に、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)
|
protected void |
fireServiceAdded(Class serviceClass)
新しいサービスを通知する BeanContextServiceEvent をトリガーします。 |
protected void |
fireServiceRevoked(BeanContextServiceRevokedEvent bcsre)
サービスの取り消しを通知する BeanContextServiceEvent をトリガーします。 |
protected void |
fireServiceRevoked(Class serviceClass,
boolean revokeNow)
|
BeanContextServices |
getBeanContextServicesPeer()
|
protected static BeanContextServicesListener |
getChildBeanContextServicesListener(Object child)
|
Iterator |
getCurrentServiceClasses()
|
Iterator |
getCurrentServiceSelectors(Class serviceClass)
|
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 |
フィールドの詳細 |
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、実行時モードの場合は falsepublic BeanContextServicesSupport(BeanContextServices peer, Locale lcle)
peer
- 実装の提供先となるピア BeanContext。このオブジェクトが自身のピアである場合は nulllcle
- この BeanContext の現在の Localepublic BeanContextServicesSupport(BeanContextServices peer)
peer
- 実装を提供するピア BeanContext。このオブジェクトが自身のピアである場合は nullpublic BeanContextServicesSupport()
メソッドの詳細 |
public void initialize()
public BeanContextServices getBeanContextServicesPeer()
protected BeanContextSupport.BCSChild createBCSChild(Object targetChild, Object peer)
サブクラスは、このメソッドをオーバーライドすることにより、セットに子を追加する add() メソッドやほかの Collection メソッドをオーバーライドすることなく、Child の独自のサブクラスを挿入することができます。
targetChild
- Child を生成する子peer
- targetChild およびピアが BeanContextProxy によって関連付けられている場合はそのピアprotected BeanContextServicesSupport.BCSSServiceProvider createBCSSServiceProvider(Class sc, BeanContextServiceProvider bcsp)
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)
public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
public boolean addService(Class serviceClass, BeanContextServiceProvider bcsp)
protected boolean addService(Class serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent)
public void revokeService(Class serviceClass, BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow)
public boolean hasService(Class serviceClass)
public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
public void releaseService(BeanContextChild child, Object requestor, Object service)
public Iterator getCurrentServiceClasses()
public Iterator getCurrentServiceSelectors(Class serviceClass)
public void serviceAvailable(BeanContextServiceAvailableEvent bcssae)
public void serviceRevoked(BeanContextServiceRevokedEvent bcssre)
サブクラスは、このメソッドをオーバーライドするか包み込むことで、独自の伝播セマンティクスを実装できます。
protected static final BeanContextServicesListener getChildBeanContextServicesListener(Object child)
protected void childJustRemovedHook(Object child, BeanContextSupport.BCSChild bcsc)
protected void releaseBeanContextResources()
protected void initializeBeanContextResources()
サブクラスは、このメソッドを包み込むことで独自のセマンティクスを実装できます。
protected final void fireServiceAdded(Class serviceClass)
protected final void fireServiceAdded(BeanContextServiceAvailableEvent bcssae)
protected final void fireServiceRevoked(BeanContextServiceRevokedEvent bcsre)
protected final void fireServiceRevoked(Class serviceClass, boolean revokeNow)
protected void bcsPreSerializationHook(ObjectOutputStream oos) throws IOException
protected void bcsPreDeserializationHook(ObjectInputStream ois) throws IOException, ClassNotFoundException
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |