WebFlow
Class WebFlowContextOps

java.lang.Object
  |
  +--WebFlow.BeanContextChildSupport
        |
        +--WebFlow.BeanContextSupport
              |
              +--WebFlow.WebFlowContextOps

public class WebFlowContextOps
extends WebFlow.BeanContextSupport
implements WebFlow.WebFlowContextOperations


Inner classes inherited from class WebFlow.BeanContextSupport
WebFlow.BeanContextSupport.BCSChild, WebFlow.BeanContextSupport.BCSIterator
 
Fields inherited from class WebFlow.BeanContextSupport
bcmListeners, children, designTime, locale, okToUseGui
 
Fields inherited from class WebFlow.BeanContextChildSupport
beanContext, beanContextChildPeer, isDeleted, pcSupport, rejectedSetBCOnce, vcSupport, WebFlowContextPeer
 
Constructor Summary
WebFlowContextOps(org.omg.CORBA.Object peer, WebFlow.configReader configSettings, org.omg.CORBA.ORB orb, java.lang.String ContextName)
          Constructor for a new property hookup adaptor.
WebFlowContextOps(org.omg.CORBA.Object peer, WebFlow.configReader configSettings, org.omg.CORBA.ORB orb, java.lang.String ContextName, WebFlow.moduleFactory factory)
           
 
Method Summary
 void addContext(org.omg.CORBA.Object context, java.lang.String objectId)
           
 void addModule(org.omg.CORBA.Object module, java.lang.String objectId)
           
 org.omg.CORBA.Object addNewContext(java.lang.String newContextName)
           
 org.omg.CORBA.Object addNewModule(java.lang.String productName)
           
 void addWFServer(java.lang.String name, org.omg.CORBA.Object server)
           
 void attachEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target, java.lang.String targetMethod, int flowModel)
           
 void attachPullEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target)
           
 void attachPullProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target)
           
 void attachPullVetoableProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target)
           
 void attachPushEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 void attachPushProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 void attachPushVetoableProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 void bc_propertyChange(WebFlow.event.PropertyChangeEvent pce, java.lang.String sourceObjectID)
          subclasses may envelope to monitor child property changes.
 void bc_vetoableChange(WebFlow.event.PropertyChangeEvent pce, java.lang.String propertyName, java.lang.String sourceObjectID)
          subclasses may envelope to monitor child property changes.
 void cleanUp()
           
 void copyConnectionFromTarget(org.omg.CORBA.Object sourceModule, org.omg.CORBA.Object there)
           
 void copyModuleBinding(org.omg.CORBA.Object sourceModule, org.omg.CORBA.Object there)
           
 java.lang.String createObjectID(java.lang.String productName)
           
 void deactivate()
           
 void destroy()
           
 void detachEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target, java.lang.String targetMethod, int flowModel)
           
 void detachPullEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target)
           
 void detachPullProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target)
           
 void detachPullVetoableProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target)
           
 void detachPushEvent(org.omg.CORBA.Object source, java.lang.String eventID, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 void detachPushProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 void detachPushVetoableProperty(org.omg.CORBA.Object source, java.lang.String propertyName, org.omg.CORBA.Object target, java.lang.String targetMethod)
           
 java.lang.String extractObjectID(org.omg.CORBA.ServerRequest request)
           
 void filterDeadObjects()
           
 void forwardEvent(org.omg.CORBA.ServerRequest request)
           
 java.util.Vector getAllBindings(org.omg.CORBA.Object target, java.util.Hashtable bindingTable)
           
 java.lang.String[] getAllWFServers()
           
 java.util.Vector getBindings(java.lang.String targetObjectID, java.util.Hashtable bindingTable)
           
 org.omg.CORBA.Object getContext(java.lang.String bindingName)
           
 org.omg.CORBA.Object getContextExtended(java.lang.String bindingName, boolean parent)
           
 org.omg.CORBA.Object getEventObject(org.omg.CORBA.ServerRequest request)
           
 org.omg.CORBA.Object getGatewayProxy()
           
 org.omg.CORBA.Object getKeyedChild(java.lang.String childID)
           
 WebFlow.moduleFactory getMFImpl()
           
 java.lang.String[] getModuleList()
           
 int getMyColor()
           
 org.omg.CORBA.Object getParentContext(java.lang.String bindingName)
           
 org.omg.CORBA.Object getSource(org.omg.CORBA.Object src)
           
 java.util.Hashtable getTargetsByProperty()
          This is the method that gets called when a bound property changes on the source object.
 WebFlow.WebFlowContext getWebFlowContext(org.omg.CORBA.Object product)
           
 org.omg.CORBA.Object getWebFlowContextPeer()
           
 org.omg.CORBA.Object getWFServer(java.lang.String serverName, java.lang.String userName)
           
 org.omg.CORBA.Object insertProxy(java.lang.String serverName)
           
 void insertRemoteServer(java.lang.String serverName, java.lang.String objectID, org.omg.CORBA.Object serverContext)
           
 void invokeEventListener(org.omg.CORBA.Object source, java.lang.String getter)
           
 org.omg.CORBA.Any invokeGetterMethod(org.omg.CORBA.Object source, java.lang.String getter)
           
 void invokePropertyListener(org.omg.CORBA.Object source, java.lang.String propertyAdder)
           
 void invokeSetterMethod(org.omg.CORBA.Object target, java.lang.String setter, org.omg.CORBA.Any newValue)
          Create a property hookup, so that a change to the named bound property on the source object turns into a call on the "setter" method of the given target object.
 void invokeSetterMethod(org.omg.CORBA.Object target, java.lang.String setter, org.omg.CORBA.Object evt)
           
 boolean isAllChildrenDeleted()
           
 void listAdapterValues()
           
 boolean myPrefixEqual(java.lang.String otherID)
           
 boolean pingRemoteObject(org.omg.CORBA.Object proxy)
           
 void propertyChange(WebFlow.event.PropertyChangeEvent evt)
           
 void propertyChangeAfterVeto(WebFlow.event.PropertyChangeEvent evt, java.lang.String sourceObjectID, java.lang.String eventID)
           
 org.omg.CORBA.Object[] pullEvents()
           
 void putEvent(org.omg.CORBA.Object evt, WebFlow.HookupTarget sourceHook)
           
 org.omg.CORBA.Object readIOR(org.omg.CORBA.ORB orb, java.lang.String fn)
           
 void removeConnectionFromTarget(org.omg.CORBA.Object targetModule)
           
 void removeContext(org.omg.CORBA.Object node)
           
 void removeLocalChildren()
           
 void removeModule(org.omg.CORBA.Object sourceModule)
           
 void removeModuleProxy(org.omg.CORBA.Object sourceModule, boolean IsProxyRemoved)
           
 void removeMyself()
           
 void removeWFServer(java.lang.String name)
           
 void setChildDeleted(java.lang.String childID)
           
 void setClorAndMFI(int myColor, WebFlow.moduleFactory MFImpl)
           
 void setConfigSettings(WebFlow.configReader configSettings)
           
 void setContextName(java.lang.String ContextName)
           
 void setInterfaceDesc(org.omg.CORBA.Object product_, org.omg.CORBA.InterfaceDef nextDef)
           
 void setServerRequest(org.omg.CORBA.ServerRequest request)
           
 void start(org.omg.CORBA.Object factoryObj)
           
 void vetoablePropertyChange(WebFlow.event.PropertyChangeEvent evt)
           
 void waitUntilSlaveReady(org.omg.CORBA.Object obj)
           
 
Methods inherited from class WebFlow.BeanContextSupport
_equals, _hashCode, add, addAll, addBeanContextMembershipListener, addNamedChild, bcsChildren, childJustAddedHook, childJustRemovedHook, classEquals, clear, contains, contains, containsAll, createBCSChild, createBCSChild, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getResource, getResourceAsStream, initialize, instantiateChild, isEmpty, isSerializing, iterator, remove, remove, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, size, toArray, toArrayInList, validatePendingAdd, validatePendingRemove
 
Methods inherited from class WebFlow.BeanContextChildSupport
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, changeImpl, fireEvent, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, getMyProxy, getObjectID, initializeBeanContextResources, IsChildProxy, isDelegated, isWFServer, pull, releaseBeanContextResources, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setAsProxy, setAsServer, setBeanContext, setBeanContextChildPeer, setMyProxy, setObjectID, setOrb, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebFlowContextOps

public WebFlowContextOps(org.omg.CORBA.Object peer,
                         WebFlow.configReader configSettings,
                         org.omg.CORBA.ORB orb,
                         java.lang.String ContextName)
                  throws WebFlow.NullPointerException
Constructor for a new property hookup adaptor.

WebFlowContextOps

public WebFlowContextOps(org.omg.CORBA.Object peer,
                         WebFlow.configReader configSettings,
                         org.omg.CORBA.ORB orb,
                         java.lang.String ContextName,
                         WebFlow.moduleFactory factory)
                  throws WebFlow.NullPointerException
Method Detail

deactivate

public void deactivate()
Specified by:
deactivate in interface WebFlow.WebFlowContextOperations

destroy

public void destroy()
Overrides:
destroy in class BeanContextChildSupport

setContextName

public void setContextName(java.lang.String ContextName)

getWebFlowContextPeer

public org.omg.CORBA.Object getWebFlowContextPeer()

setConfigSettings

public void setConfigSettings(WebFlow.configReader configSettings)

getContext

public org.omg.CORBA.Object getContext(java.lang.String bindingName)
Specified by:
getContext in interface WebFlow.WebFlowContextOperations

getParentContext

public org.omg.CORBA.Object getParentContext(java.lang.String bindingName)
Specified by:
getParentContext in interface WebFlow.WebFlowContextOperations

getContextExtended

public org.omg.CORBA.Object getContextExtended(java.lang.String bindingName,
                                               boolean parent)
Specified by:
getContextExtended in interface WebFlow.WebFlowContextOperations

listAdapterValues

public void listAdapterValues()

setServerRequest

public void setServerRequest(org.omg.CORBA.ServerRequest request)

extractObjectID

public java.lang.String extractObjectID(org.omg.CORBA.ServerRequest request)

getMyColor

public int getMyColor()
Specified by:
getMyColor in interface WebFlow.WebFlowContextOperations

getSource

public org.omg.CORBA.Object getSource(org.omg.CORBA.Object src)

invokeSetterMethod

public void invokeSetterMethod(org.omg.CORBA.Object target,
                               java.lang.String setter,
                               org.omg.CORBA.Object evt)

invokeSetterMethod

public void invokeSetterMethod(org.omg.CORBA.Object target,
                               java.lang.String setter,
                               org.omg.CORBA.Any newValue)
                        throws WebFlow.event.PropertyVetoException
Create a property hookup, so that a change to the named bound property on the source object turns into a call on the "setter" method of the given target object.

invokeGetterMethod

public org.omg.CORBA.Any invokeGetterMethod(org.omg.CORBA.Object source,
                                            java.lang.String getter)

invokeEventListener

public void invokeEventListener(org.omg.CORBA.Object source,
                                java.lang.String getter)

invokePropertyListener

public void invokePropertyListener(org.omg.CORBA.Object source,
                                   java.lang.String propertyAdder)

getEventObject

public org.omg.CORBA.Object getEventObject(org.omg.CORBA.ServerRequest request)

forwardEvent

public void forwardEvent(org.omg.CORBA.ServerRequest request)

pullEvents

public org.omg.CORBA.Object[] pullEvents()
Specified by:
pullEvents in interface WebFlow.WebFlowContextOperations

putEvent

public void putEvent(org.omg.CORBA.Object evt,
                     WebFlow.HookupTarget sourceHook)

attachPushProperty

public void attachPushProperty(org.omg.CORBA.Object source,
                               java.lang.String propertyName,
                               org.omg.CORBA.Object target,
                               java.lang.String targetMethod)
Specified by:
attachPushProperty in interface WebFlow.WebFlowContextOperations

detachPushProperty

public void detachPushProperty(org.omg.CORBA.Object source,
                               java.lang.String propertyName,
                               org.omg.CORBA.Object target,
                               java.lang.String targetMethod)
Specified by:
detachPushProperty in interface WebFlow.WebFlowContextOperations

attachPushVetoableProperty

public void attachPushVetoableProperty(org.omg.CORBA.Object source,
                                       java.lang.String propertyName,
                                       org.omg.CORBA.Object target,
                                       java.lang.String targetMethod)
Specified by:
attachPushVetoableProperty in interface WebFlow.WebFlowContextOperations

detachPushVetoableProperty

public void detachPushVetoableProperty(org.omg.CORBA.Object source,
                                       java.lang.String propertyName,
                                       org.omg.CORBA.Object target,
                                       java.lang.String targetMethod)
Specified by:
detachPushVetoableProperty in interface WebFlow.WebFlowContextOperations

attachPushEvent

public void attachPushEvent(org.omg.CORBA.Object source,
                            java.lang.String eventID,
                            org.omg.CORBA.Object target,
                            java.lang.String targetMethod)
Specified by:
attachPushEvent in interface WebFlow.WebFlowContextOperations

detachPushEvent

public void detachPushEvent(org.omg.CORBA.Object source,
                            java.lang.String eventID,
                            org.omg.CORBA.Object target,
                            java.lang.String targetMethod)
Specified by:
detachPushEvent in interface WebFlow.WebFlowContextOperations

attachPullProperty

public void attachPullProperty(org.omg.CORBA.Object source,
                               java.lang.String propertyName,
                               org.omg.CORBA.Object target)
Specified by:
attachPullProperty in interface WebFlow.WebFlowContextOperations

detachPullProperty

public void detachPullProperty(org.omg.CORBA.Object source,
                               java.lang.String propertyName,
                               org.omg.CORBA.Object target)
Specified by:
detachPullProperty in interface WebFlow.WebFlowContextOperations

attachPullVetoableProperty

public void attachPullVetoableProperty(org.omg.CORBA.Object source,
                                       java.lang.String propertyName,
                                       org.omg.CORBA.Object target)
Specified by:
attachPullVetoableProperty in interface WebFlow.WebFlowContextOperations

detachPullVetoableProperty

public void detachPullVetoableProperty(org.omg.CORBA.Object source,
                                       java.lang.String propertyName,
                                       org.omg.CORBA.Object target)
Specified by:
detachPullVetoableProperty in interface WebFlow.WebFlowContextOperations

attachPullEvent

public void attachPullEvent(org.omg.CORBA.Object source,
                            java.lang.String eventID,
                            org.omg.CORBA.Object target)
Specified by:
attachPullEvent in interface WebFlow.WebFlowContextOperations

detachPullEvent

public void detachPullEvent(org.omg.CORBA.Object source,
                            java.lang.String eventID,
                            org.omg.CORBA.Object target)
Specified by:
detachPullEvent in interface WebFlow.WebFlowContextOperations

attachEvent

public void attachEvent(org.omg.CORBA.Object source,
                        java.lang.String eventID,
                        org.omg.CORBA.Object target,
                        java.lang.String targetMethod,
                        int flowModel)

removeMyself

public void removeMyself()
Overrides:
removeMyself in class BeanContextChildSupport

detachEvent

public void detachEvent(org.omg.CORBA.Object source,
                        java.lang.String eventID,
                        org.omg.CORBA.Object target,
                        java.lang.String targetMethod,
                        int flowModel)

removeModule

public void removeModule(org.omg.CORBA.Object sourceModule)
Specified by:
removeModule in interface WebFlow.WebFlowContextOperations

removeModuleProxy

public void removeModuleProxy(org.omg.CORBA.Object sourceModule,
                              boolean IsProxyRemoved)
Specified by:
removeModuleProxy in interface WebFlow.WebFlowContextOperations

removeConnectionFromTarget

public void removeConnectionFromTarget(org.omg.CORBA.Object targetModule)

removeLocalChildren

public void removeLocalChildren()
Specified by:
removeLocalChildren in interface WebFlow.WebFlowContextOperations

removeContext

public void removeContext(org.omg.CORBA.Object node)
Specified by:
removeContext in interface WebFlow.WebFlowContextOperations

getAllBindings

public java.util.Vector getAllBindings(org.omg.CORBA.Object target,
                                       java.util.Hashtable bindingTable)

getBindings

public java.util.Vector getBindings(java.lang.String targetObjectID,
                                    java.util.Hashtable bindingTable)

copyModuleBinding

public void copyModuleBinding(org.omg.CORBA.Object sourceModule,
                              org.omg.CORBA.Object there)
Specified by:
copyModuleBinding in interface WebFlow.WebFlowContextOperations

copyConnectionFromTarget

public void copyConnectionFromTarget(org.omg.CORBA.Object sourceModule,
                                     org.omg.CORBA.Object there)

setInterfaceDesc

public void setInterfaceDesc(org.omg.CORBA.Object product_,
                             org.omg.CORBA.InterfaceDef nextDef)

readIOR

public org.omg.CORBA.Object readIOR(org.omg.CORBA.ORB orb,
                                    java.lang.String fn)

getTargetsByProperty

public java.util.Hashtable getTargetsByProperty()
This is the method that gets called when a bound property changes on the source object. We map the property name to a list of targets and then call each of the target "setter" methods.

getKeyedChild

public org.omg.CORBA.Object getKeyedChild(java.lang.String childID)
Specified by:
getKeyedChild in interface WebFlow.WebFlowContextOperations

setChildDeleted

public void setChildDeleted(java.lang.String childID)
Specified by:
setChildDeleted in interface WebFlow.WebFlowContextOperations

isAllChildrenDeleted

public boolean isAllChildrenDeleted()
Specified by:
isAllChildrenDeleted in interface WebFlow.WebFlowContextOperations

createObjectID

public java.lang.String createObjectID(java.lang.String productName)
Specified by:
createObjectID in interface WebFlow.WebFlowContextOperations

filterDeadObjects

public void filterDeadObjects()

pingRemoteObject

public boolean pingRemoteObject(org.omg.CORBA.Object proxy)

addNewModule

public org.omg.CORBA.Object addNewModule(java.lang.String productName)
Specified by:
addNewModule in interface WebFlow.WebFlowContextOperations

addNewContext

public org.omg.CORBA.Object addNewContext(java.lang.String newContextName)
                                   throws WebFlow.event.PropertyVetoException,
                                          WebFlow.NullPointerException
Specified by:
addNewContext in interface WebFlow.WebFlowContextOperations

addModule

public void addModule(org.omg.CORBA.Object module,
                      java.lang.String objectId)
Specified by:
addModule in interface WebFlow.WebFlowContextOperations

addContext

public void addContext(org.omg.CORBA.Object context,
                       java.lang.String objectId)
Specified by:
addContext in interface WebFlow.WebFlowContextOperations

propertyChange

public void propertyChange(WebFlow.event.PropertyChangeEvent evt)
                    throws WebFlow.event.PropertyVetoException
Specified by:
propertyChange in interface WebFlow.WebFlowContextOperations

propertyChangeAfterVeto

public void propertyChangeAfterVeto(WebFlow.event.PropertyChangeEvent evt,
                                    java.lang.String sourceObjectID,
                                    java.lang.String eventID)
                             throws WebFlow.event.PropertyVetoException

vetoablePropertyChange

public void vetoablePropertyChange(WebFlow.event.PropertyChangeEvent evt)
                            throws WebFlow.event.PropertyVetoException
Specified by:
vetoablePropertyChange in interface WebFlow.WebFlowContextOperations

bc_vetoableChange

public void bc_vetoableChange(WebFlow.event.PropertyChangeEvent pce,
                              java.lang.String propertyName,
                              java.lang.String sourceObjectID)
                       throws WebFlow.event.PropertyVetoException
subclasses may envelope to monitor child property changes.

bc_propertyChange

public void bc_propertyChange(WebFlow.event.PropertyChangeEvent pce,
                              java.lang.String sourceObjectID)
                       throws WebFlow.IllegalArgumentException,
                              WebFlow.IllegalStateException
subclasses may envelope to monitor child property changes.

addWFServer

public void addWFServer(java.lang.String name,
                        org.omg.CORBA.Object server)
Specified by:
addWFServer in interface WebFlow.WebFlowContextOperations

removeWFServer

public void removeWFServer(java.lang.String name)
Specified by:
removeWFServer in interface WebFlow.WebFlowContextOperations

getAllWFServers

public java.lang.String[] getAllWFServers()
Specified by:
getAllWFServers in interface WebFlow.WebFlowContextOperations

getGatewayProxy

public org.omg.CORBA.Object getGatewayProxy()

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface WebFlow.WebFlowContextOperations

getWFServer

public org.omg.CORBA.Object getWFServer(java.lang.String serverName,
                                        java.lang.String userName)
Specified by:
getWFServer in interface WebFlow.WebFlowContextOperations

insertRemoteServer

public void insertRemoteServer(java.lang.String serverName,
                               java.lang.String objectID,
                               org.omg.CORBA.Object serverContext)
Specified by:
insertRemoteServer in interface WebFlow.WebFlowContextOperations

myPrefixEqual

public boolean myPrefixEqual(java.lang.String otherID)

waitUntilSlaveReady

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

insertProxy

public org.omg.CORBA.Object insertProxy(java.lang.String serverName)

getWebFlowContext

public WebFlow.WebFlowContext getWebFlowContext(org.omg.CORBA.Object product)

getModuleList

public java.lang.String[] getModuleList()
Specified by:
getModuleList in interface WebFlow.WebFlowContextOperations

getMFImpl

public WebFlow.moduleFactory getMFImpl()

start

public void start(org.omg.CORBA.Object factoryObj)

setClorAndMFI

public void setClorAndMFI(int myColor,
                          WebFlow.moduleFactory MFImpl)