クラス
java.beans.beancontext.BeanContextSupport.BCSChildの使用
-
java.beans.beancontextでのBeanContextSupport.BCSChildの使用
修飾子と型フィールド説明protected HashMap<Object,
BeanContextSupport.BCSChild> BeanContextSupport.children
protected HashMap children
フィールドへのすべてのアクセスは、そのオブジェクトで同期されます。修飾子と型メソッド説明protected BeanContextSupport.BCSChild
BeanContextServicesSupport.createBCSChild
(Object targetChild, Object peer) サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加するadd()メソッドやほかのCollectionメソッドをオーバーライドすることなく、Childの独自のサブクラスを挿入することができます。protected BeanContextSupport.BCSChild
BeanContextSupport.createBCSChild
(Object targetChild, Object peer) サブクラスはこのメソッドをオーバーライドすることにより、セットに子を追加するadd()メソッドやほかのCollectionメソッドをオーバーライドすることなく、Childの独自のサブクラスを挿入することができます。修飾子と型メソッド説明protected Iterator<BeanContextSupport.BCSChild>
BeanContextSupport.bcsChildren()
このBeanContext
のすべての子のイテレータを返します。修飾子と型メソッド説明protected void
BeanContextSupport.childDeserializedHook
(Object child, BeanContextSupport.BCSChild bcsc) 新しく直列化復元された子およびBCSChildを使ってreadObjectによって呼び出されます。protected void
BeanContextSupport.childJustAddedHook
(Object child, BeanContextSupport.BCSChild bcsc) サブクラスはこのメソッドをオーバーライドして、子が追加されて、イベント通知が発生する前に、簡単にadd()セマンティックスを拡張できます。protected void
BeanContextServicesSupport.childJustRemovedHook
(Object child, BeanContextSupport.BCSChild bcsc) 子が正常に削除された後で、スーパー・クラスの子削除操作から呼び出されます。子が同期された状態で呼び出されます。protected void
BeanContextSupport.childJustRemovedHook
(Object child, BeanContextSupport.BCSChild bcsc) サブクラスはこのメソッドをオーバーライドして、子が削除されて、イベント通知が発生する前に、簡単にremove()セマンティックスを拡張できます。