|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WebFlow.BeanContextSupport
Inner Class Summary | |
protected class |
BeanContextSupport.BCSChild
|
protected static class |
BeanContextSupport.BCSIterator
protected final subclass that encapsulates an iterator but implements a noop remove() method. |
Field Summary | |
protected java.util.ArrayList |
bcmListeners
all accesses to the protected ArrayList bcmListeners field
shall be synchronized on that object. |
protected myHashMap |
children
all accesses to the protected HashMap children field
shall be synchronized on that object. |
protected boolean |
designTime
|
protected java.util.Locale |
locale
|
protected boolean |
okToUseGui
|
Constructor Summary | |
BeanContextSupport(org.omg.CORBA.Object peer,
org.omg.CORBA.ORB orb)
Construct a BeanContextSupport instance |
Method Summary | |
boolean |
_equals(org.omg.CORBA.Object obj)
|
int |
_hashCode()
|
boolean |
add(org.omg.CORBA.Object targetChild)
Adds/nests a child within this BeanContext Invoked as a side effect of java.beans.Beans.instantiate(). |
boolean |
addAll(java.util.Collection c)
add Collection to set of Children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
void |
addBeanContextMembershipListener(WebFlow.BeanContextMembershipListener bcml)
Adds a BeanContextMembershipListener |
boolean |
addNamedChild(org.omg.CORBA.Object targetChild,
java.lang.String objectId)
|
boolean |
addNamedChildSlaveServer(org.omg.CORBA.Object targetChild,
java.lang.String objectId)
|
protected java.util.Iterator |
bcsChildren()
|
protected void |
childJustAddedHook(java.lang.Object child,
BeanContextSupport.BCSChild bcsc)
subclasses may override this method to simply extend add() semantics after the child has been added and before the event notification has occurred. |
protected void |
childJustRemovedHook(java.lang.Object child,
BeanContextSupport.BCSChild bcsc)
subclasses may override this method to simply extend remove() semantics after the child has been removed and before the event notification has occurred. |
protected static boolean |
classEquals(java.lang.Class first,
java.lang.Class second)
|
void |
clear()
clear the children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
boolean |
contains(org.omg.CORBA.Object o)
|
boolean |
contains(java.lang.String objectID)
|
boolean |
containsAll(java.util.Collection c)
|
protected BeanContextSupport.BCSChild |
createBCSChild(org.omg.CORBA.Object targetChild,
org.omg.CORBA.Object peer)
Subclasses can override this method to insert their own subclass of Child without having to override add() or the other Collection methods that add children to the set. |
protected BeanContextSupport.BCSChild |
createBCSChild(org.omg.CORBA.Object targetChild,
org.omg.CORBA.Object peer,
java.lang.String childName)
|
protected void |
fireChildrenAdded(BeanContextMembershipEventImpl bcme)
Fire a BeanContextshipEvent on the BeanContextMembershipListener interface |
protected void |
fireChildrenRemoved(BeanContextMembershipEventImpl bcme)
Fire a BeanContextshipEvent on the BeanContextMembershipListener interface |
org.omg.CORBA.Object |
getBeanContextPeer()
|
protected org.omg.CORBA.Object |
getChildBeanContextChild(org.omg.CORBA.Object child)
|
protected org.omg.CORBA.Object |
getChildBeanContextChild(java.lang.String objectID)
|
protected static org.omg.CORBA.Object |
getChildBeanContextMembershipListener(java.lang.Object child)
|
protected static org.omg.CORBA.Object |
getChildPropertyChangeListener(java.lang.Object child)
|
protected static boolean |
getChildSerializable(java.lang.Object obj)
|
protected static org.omg.CORBA.Object |
getChildVetoableChangeListener(java.lang.Object child)
|
void |
getResource(java.lang.String name,
WebFlow.BeanContextChild bcc)
|
void |
getResourceAsStream(java.lang.String name,
WebFlow.BeanContextChild bcc)
|
protected void |
initialize()
protected method called from constructor and readObject to initialize transient state of BeanContextSupport instance. |
org.omg.CORBA.Object |
instantiateChild(java.lang.String beanName)
The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into a BeanContext. |
boolean |
isEmpty()
|
boolean |
isSerializing()
|
java.util.Iterator |
iterator()
|
boolean |
remove(org.omg.CORBA.Object targetChild)
|
protected boolean |
remove(org.omg.CORBA.Object targetChild,
boolean callChildSetBC)
|
boolean |
remove(java.lang.String objectID)
|
protected boolean |
remove(java.lang.String objectID,
boolean callChildSetBC)
|
boolean |
removeAll(java.util.Collection c)
remove all specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
void |
removeBeanContextMembershipListener(WebFlow.BeanContextMembershipListener bcml)
Removes a BeanContextMembershipListener |
boolean |
retainAll(java.util.Collection c)
retain only specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field |
int |
size()
|
org.omg.CORBA.Object[] |
toArray()
|
org.omg.CORBA.Object[] |
toArrayInList(org.omg.CORBA.Object[] arry)
|
protected boolean |
validatePendingAdd(java.lang.Object targetChild)
Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being added to the BeanContext. |
protected boolean |
validatePendingRemove(java.lang.Object targetChild)
Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being removed from the BeanContext. |
Field Detail |
protected transient myHashMap children
protected HashMap children
field
shall be synchronized on that object.protected transient java.util.ArrayList bcmListeners
protected ArrayList bcmListeners
field
shall be synchronized on that object.protected java.util.Locale locale
protected boolean okToUseGui
protected boolean designTime
Constructor Detail |
public BeanContextSupport(org.omg.CORBA.Object peer, org.omg.CORBA.ORB orb) throws java.lang.NullPointerException
Construct a BeanContextSupport instance
peer
- The peer BeanContext we are supplying an implementation for, if null the this object is its own peerlcle
- The current Locale for this BeanContext.dtime
- The initial state, true if in design mode, false if runtime.visible
- The initial visibility.Method Detail |
public org.omg.CORBA.Object getBeanContextPeer()
public org.omg.CORBA.Object instantiateChild(java.lang.String beanName)
The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into a BeanContext.
The semantics of the beanName parameter are defined by java.beans.Beans.instantate.
beanName
- the name of the Bean to instantiate within this BeanContextpublic int _hashCode()
public boolean _equals(org.omg.CORBA.Object obj)
public int size()
public boolean isEmpty()
public boolean contains(org.omg.CORBA.Object o)
public boolean contains(java.lang.String objectID)
public java.util.Iterator iterator()
public org.omg.CORBA.Object[] toArray()
public org.omg.CORBA.Object[] toArrayInList(org.omg.CORBA.Object[] arry)
protected BeanContextSupport.BCSChild createBCSChild(org.omg.CORBA.Object targetChild, org.omg.CORBA.Object peer)
Subclasses can override this method to insert their own subclass of Child without having to override add() or the other Collection methods that add children to the set.
targetChild
- the child to create the Child on behalf ofpeer
- the peer if the tragetChild and the peer are related by an implementation of BeanContextProxyprotected BeanContextSupport.BCSChild createBCSChild(org.omg.CORBA.Object targetChild, org.omg.CORBA.Object peer, java.lang.String childName)
public boolean add(org.omg.CORBA.Object targetChild) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.NullPointerException
Adds/nests a child within this BeanContext
Invoked as a side effect of java.beans.Beans.instantiate().
targetChildren
- The child objects to nest within this BeanContextpublic boolean addNamedChild(org.omg.CORBA.Object targetChild, java.lang.String objectId) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.NullPointerException
public boolean addNamedChildSlaveServer(org.omg.CORBA.Object targetChild, java.lang.String objectId) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.lang.NullPointerException
public boolean remove(org.omg.CORBA.Object targetChild)
targetChildren
- The child objects to removepublic boolean remove(java.lang.String objectID)
protected boolean remove(org.omg.CORBA.Object targetChild, boolean callChildSetBC) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
protected boolean remove(java.lang.String objectID, boolean callChildSetBC) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
public boolean containsAll(java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean removeAll(java.util.Collection c)
public boolean retainAll(java.util.Collection c)
public void clear()
public void addBeanContextMembershipListener(WebFlow.BeanContextMembershipListener bcml) throws java.lang.NullPointerException
bcml
- the BeanContextMembershipListener to addpublic void removeBeanContextMembershipListener(WebFlow.BeanContextMembershipListener bcml) throws java.lang.NullPointerException
bcml
- the BeanContextMembershipListener to removepublic void getResourceAsStream(java.lang.String name, WebFlow.BeanContextChild bcc)
name
- the name of the resource requested.child
- the child object making the request.public void getResource(java.lang.String name, WebFlow.BeanContextChild bcc)
name
- the name of the resource requested.child
- the child object making the request.public boolean isSerializing()
protected java.util.Iterator bcsChildren()
protected boolean validatePendingAdd(java.lang.Object targetChild)
Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being added to the BeanContext.
protected boolean validatePendingRemove(java.lang.Object targetChild)
Subclasses of this class may override, or envelope, this method to add validation behavior for the BeanContext to examine child objects immediately prior to their being removed from the BeanContext.
protected void childJustAddedHook(java.lang.Object child, BeanContextSupport.BCSChild bcsc)
protected void childJustRemovedHook(java.lang.Object child, BeanContextSupport.BCSChild bcsc)
protected static final boolean getChildSerializable(java.lang.Object obj)
protected static final org.omg.CORBA.Object getChildPropertyChangeListener(java.lang.Object child)
protected static final org.omg.CORBA.Object getChildVetoableChangeListener(java.lang.Object child)
protected static final org.omg.CORBA.Object getChildBeanContextMembershipListener(java.lang.Object child)
protected final org.omg.CORBA.Object getChildBeanContextChild(org.omg.CORBA.Object child) throws java.lang.IllegalArgumentException
protected final org.omg.CORBA.Object getChildBeanContextChild(java.lang.String objectID) throws java.lang.IllegalArgumentException
protected final void fireChildrenAdded(BeanContextMembershipEventImpl bcme)
protected final void fireChildrenRemoved(BeanContextMembershipEventImpl bcme)
protected void initialize()
protected static final boolean classEquals(java.lang.Class first, java.lang.Class second)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |