WebFlow
Class BeanContextChildSupport

WebFlow.BeanContextChildSupport

public class BeanContextChildSupport

This is a BeanContextChild support class to provide support for implementing the BeanContextChild protocol.


Field Summary
protected  org.omg.CORBA.Object beanContext
           
 org.omg.CORBA.Object beanContextChildPeer
           
protected  boolean isDeleted
           
protected  PropertyChangeSupport pcSupport
           
protected  boolean rejectedSetBCOnce
           
protected  VetoableChangeSupport vcSupport
           
 org.omg.CORBA.Object WebFlowContextPeer
           
 
Constructor Summary
BeanContextChildSupport(org.omg.CORBA.Object peer)
          construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself.
 
Method Summary
 void addPropertyChangeListener(org.omg.CORBA.Object pcl)
           
 void addPropertyChangeListener(java.lang.String name, org.omg.CORBA.Object pcl)
          add a property change listener
 void addVetoableChangeListener(java.lang.String name, org.omg.CORBA.Object vcl)
          add a vetoable change listener
 void changeImpl(java.lang.String objName)
           
 void destroy()
           
 void fireEvent(java.lang.String eventMethod, org.omg.CORBA.Object evt)
          fires a propertyChange Event
 void firePropertyChange(java.lang.String name, org.omg.CORBA.Object oldValue, org.omg.CORBA.Object newValue)
           
 void firePropertyChange(java.lang.String name, java.lang.String oldValue, java.lang.String newValue)
           
 void fireVetoableChange(java.lang.String name, org.omg.CORBA.Object oldValue, org.omg.CORBA.Object newValue)
          fires a vetoableChange Event
 void fireVetoableChange(java.lang.String name, java.lang.String oldValue, java.lang.String newValue)
           
 org.omg.CORBA.Object getBeanContext()
           
 org.omg.CORBA.Object getBeanContextChildPeer()
           
 org.omg.CORBA.Object getMyProxy()
           
 java.lang.String getObjectID()
           
protected  void initializeBeanContextResources()
          This method may be overridden by subclasses to provide their own initialization behaviors.
 boolean IsChildProxy()
           
 boolean isDelegated()
           
 boolean isWFServer()
           
 org.omg.CORBA.Object[] pull()
           
protected  void releaseBeanContextResources()
          This method may be overridden by subclasses to provide their own release behaviors.
 void removeMyself()
          this method will catched by proxy which will remove this object and proxy itself
 void removePropertyChangeListener(org.omg.CORBA.Object pcl)
           
 void removePropertyChangeListener(java.lang.String name, org.omg.CORBA.Object pcl)
          remove a property change listener
 void removeVetoableChangeListener(java.lang.String name, org.omg.CORBA.Object vcl)
          remove a vetoable change listener
 void serviceAvailable(WebFlow.BeanContextServiceAvailableEvent bcsae)
          a new service is available from the nesting BeanContext.
 void serviceRevoked(WebFlow.BeanContextServiceRevokedEvent bcsre)
          a service provided by the nesting BeanContext has been revoked.
 void setAsProxy(boolean isProxy)
           
 void setAsServer()
           
 void setBeanContext(org.omg.CORBA.Object bc)
          setBeanContext
 void setBeanContextChildPeer(org.omg.CORBA.Object bcc)
          setBeanContextChildPeer
 void setMyProxy(org.omg.CORBA.Object obj)
           
 void setObjectID(java.lang.String id)
           
 void setOrb(org.omg.CORBA.ORB orb)
           
 boolean validatePendingSetBeanContext(org.omg.CORBA.Object newValue)
          called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value.
 

Field Detail

beanContextChildPeer

public org.omg.CORBA.Object beanContextChildPeer

WebFlowContextPeer

public org.omg.CORBA.Object WebFlowContextPeer

pcSupport

protected PropertyChangeSupport pcSupport

vcSupport

protected VetoableChangeSupport vcSupport

beanContext

protected transient org.omg.CORBA.Object beanContext

rejectedSetBCOnce

protected transient boolean rejectedSetBCOnce

isDeleted

protected boolean isDeleted
Constructor Detail

BeanContextChildSupport

public BeanContextChildSupport(org.omg.CORBA.Object peer)
                        throws java.lang.NullPointerException
construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself. If isProxy is true , this child is proxy, real object otherwise
Method Detail

setAsServer

public void setAsServer()

isWFServer

public boolean isWFServer()

changeImpl

public void changeImpl(java.lang.String objName)

removeMyself

public void removeMyself()
this method will catched by proxy which will remove this object and proxy itself

pull

public org.omg.CORBA.Object[] pull()

setObjectID

public void setObjectID(java.lang.String id)

getObjectID

public java.lang.String getObjectID()

setMyProxy

public void setMyProxy(org.omg.CORBA.Object obj)

getMyProxy

public org.omg.CORBA.Object getMyProxy()

setOrb

public void setOrb(org.omg.CORBA.ORB orb)

setAsProxy

public void setAsProxy(boolean isProxy)

IsChildProxy

public boolean IsChildProxy()

destroy

public void destroy()

setBeanContextChildPeer

public void setBeanContextChildPeer(org.omg.CORBA.Object bcc)
                             throws java.lang.NullPointerException
setBeanContextChildPeer

setBeanContext

public void setBeanContext(org.omg.CORBA.Object bc)
                    throws WebFlow.event.PropertyVetoException
setBeanContext

getBeanContext

public org.omg.CORBA.Object getBeanContext()

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String name,
                                      org.omg.CORBA.Object pcl)
add a property change listener

addPropertyChangeListener

public void addPropertyChangeListener(org.omg.CORBA.Object pcl)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String name,
                                         org.omg.CORBA.Object pcl)
remove a property change listener

removePropertyChangeListener

public void removePropertyChangeListener(org.omg.CORBA.Object pcl)

addVetoableChangeListener

public void addVetoableChangeListener(java.lang.String name,
                                      org.omg.CORBA.Object vcl)
add a vetoable change listener

removeVetoableChangeListener

public void removeVetoableChangeListener(java.lang.String name,
                                         org.omg.CORBA.Object vcl)
remove a vetoable change listener

serviceRevoked

public void serviceRevoked(WebFlow.BeanContextServiceRevokedEvent bcsre)
                    throws java.lang.IllegalArgumentException
a service provided by the nesting BeanContext has been revoked. subclasses may override this method in order to implement their own behaviors

serviceAvailable

public void serviceAvailable(WebFlow.BeanContextServiceAvailableEvent bcsae)
                      throws java.lang.IllegalArgumentException
a new service is available from the nesting BeanContext. subclasses may override this method in order to implement their own behaviors

getBeanContextChildPeer

public org.omg.CORBA.Object getBeanContextChildPeer()
Returns:
the BeanContextChild peer of this class

isDelegated

public boolean isDelegated()
Returns:
true if this class is a delegate of another

fireEvent

public void fireEvent(java.lang.String eventMethod,
                      org.omg.CORBA.Object evt)
fires a propertyChange Event

firePropertyChange

public void firePropertyChange(java.lang.String name,
                               org.omg.CORBA.Object oldValue,
                               org.omg.CORBA.Object newValue)

firePropertyChange

public void firePropertyChange(java.lang.String name,
                               java.lang.String oldValue,
                               java.lang.String newValue)

fireVetoableChange

public void fireVetoableChange(java.lang.String name,
                               org.omg.CORBA.Object oldValue,
                               org.omg.CORBA.Object newValue)
                        throws WebFlow.event.PropertyVetoException
fires a vetoableChange Event

fireVetoableChange

public void fireVetoableChange(java.lang.String name,
                               java.lang.String oldValue,
                               java.lang.String newValue)
                        throws WebFlow.event.PropertyVetoException

validatePendingSetBeanContext

public boolean validatePendingSetBeanContext(org.omg.CORBA.Object newValue)
called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. returning false will cause setBeanContext to throw PropertyVetoException.

releaseBeanContextResources

protected void releaseBeanContextResources()
This method may be overridden by subclasses to provide their own release behaviors. When invoked any resources held by this instance obtained from its current BeanContext property should be released since the object is no longer nested within that BeanContext.

initializeBeanContextResources

protected void initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors. When invoked any resources requried by the BeanContextChild should be obtained from the current BeanContext.