net.sf.sail.core.beans
Class Pod

java.lang.Object
  extended by java.beans.beancontext.BeanContextChildSupport
      extended by java.beans.beancontext.BeanContextSupport
          extended by java.beans.beancontext.BeanContextServicesSupport
              extended by net.sf.sail.core.activity.model.ScriptBeanContext
                  extended by net.sf.sail.core.beans.Pod
All Implemented Interfaces:
java.beans.beancontext.BeanContext, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextServiceRevokedListener, java.beans.beancontext.BeanContextServices, java.beans.beancontext.BeanContextServicesListener, java.beans.DesignMode, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener, java.beans.Visibility, java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.EventListener, INavElement, IScriptBean

public class Pod
extends ScriptBeanContext

Bean representing the reusable Pod container.

Author:
turadg
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.beans.beancontext.BeanContextServicesSupport
java.beans.beancontext.BeanContextServicesSupport.BCSSChild, java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider, java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider
 
Nested classes/interfaces inherited from class java.beans.beancontext.BeanContextSupport
java.beans.beancontext.BeanContextSupport.BCSChild, java.beans.beancontext.BeanContextSupport.BCSIterator
 
Field Summary
(package private)  java.util.List assemblyCalls
           
(package private)  java.util.Set<PodUuid> childPodIds
           
(package private)  PodUuid podId
           
static java.lang.String PROPERTY_POD_ID
          Make this a constant so other classes can use this property name
(package private)  java.util.Set<PropertyRef> transientRefs
           
(package private)  java.util.Map<java.lang.String,PropertyRef> vars
           
 
Fields inherited from class net.sf.sail.core.activity.model.ScriptBeanContext
navParent, support
 
Fields inherited from class java.beans.beancontext.BeanContextServicesSupport
bcsListeners, proxy, serializable, services
 
Fields inherited from class java.beans.beancontext.BeanContextSupport
bcmListeners, children, designTime, locale, okToUseGui
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Fields inherited from interface net.sf.sail.core.activity.model.IScriptBean
ENGINE_SCOPE, GLOBAL_SCOPE
 
Fields inherited from interface java.beans.beancontext.BeanContext
globalHierarchyLock
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
Pod()
           
 
Method Summary
 boolean add(java.lang.Object targetChild)
           
 void assemble()
           
 void bind(java.lang.String varName, PropertyRef propertyRef, boolean isTransient)
           
protected  Pod childWithId(PodUuid podId)
           
 java.util.List getAssemblyCalls()
           
 java.util.Set getChildPodIds()
           
 java.net.URL getPodArchive()
           
 PodUuid getPodId()
           
 java.util.Set getTransientRefs()
           
 java.util.Map getVars()
           
 int hashCode()
           
 boolean isTransient(java.lang.Object value)
          Returns whether the value is the same as a podvar that is transient.
 java.lang.Object resolve(java.lang.String varName)
           
 void setAssemblyCalls(java.util.List assemblyCalls)
           
 void setChildPodIds(java.util.Set<PodUuid> childPodIds)
           
 void setPodId(PodUuid podId)
           
 void setTransientRefs(java.util.Set<PropertyRef> transientRefs)
           
 void setVars(java.util.Map<java.lang.String,PropertyRef> vars)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.sail.core.activity.model.ScriptBeanContext
clear, close, evaluate, getCustomizerClass, getName, getParentElement, getRootElement, getScript, getScriptParent, initialize, main, removeAll, setCustomizerClass, setName, setParentElement, setScript, setScriptParent
 
Methods inherited from class java.beans.beancontext.BeanContextServicesSupport
addBeanContextServicesListener, addService, addService, bcsPreDeserializationHook, bcsPreSerializationHook, childJustRemovedHook, createBCSChild, createBCSSServiceProvider, fireServiceAdded, fireServiceAdded, fireServiceRevoked, fireServiceRevoked, getBeanContextServicesPeer, getChildBeanContextServicesListener, getCurrentServiceClasses, getCurrentServiceSelectors, getService, hasService, initializeBeanContextResources, releaseBeanContextResources, releaseService, removeBeanContextServicesListener, revokeService, serviceAvailable, serviceRevoked
 
Methods inherited from class java.beans.beancontext.BeanContextSupport
addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, childDeserializedHook, childJustAddedHook, classEquals, contains, containsAll, containsKey, copyChildren, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren
 
Methods inherited from class java.beans.beancontext.BeanContextChildSupport
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
 
Methods inherited from interface java.beans.beancontext.BeanContext
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener
 
Methods inherited from interface java.util.Collection
addAll, contains, containsAll, equals, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.beans.DesignMode
isDesignTime, setDesignTime
 
Methods inherited from interface java.beans.Visibility
avoidingGui, dontUseGui, needsGui, okToUseGui
 

Field Detail

PROPERTY_POD_ID

public static final java.lang.String PROPERTY_POD_ID
Make this a constant so other classes can use this property name

See Also:
Constant Field Values

podId

PodUuid podId

vars

java.util.Map<java.lang.String,PropertyRef> vars

transientRefs

java.util.Set<PropertyRef> transientRefs

assemblyCalls

java.util.List assemblyCalls

childPodIds

java.util.Set<PodUuid> childPodIds
Constructor Detail

Pod

public Pod()
Method Detail

getPodId

public PodUuid getPodId()

setPodId

public void setPodId(PodUuid podId)

getVars

public java.util.Map getVars()

setVars

public void setVars(java.util.Map<java.lang.String,PropertyRef> vars)

bind

public void bind(java.lang.String varName,
                 PropertyRef propertyRef,
                 boolean isTransient)

resolve

public java.lang.Object resolve(java.lang.String varName)

getTransientRefs

public java.util.Set getTransientRefs()

setTransientRefs

public void setTransientRefs(java.util.Set<PropertyRef> transientRefs)

getAssemblyCalls

public java.util.List getAssemblyCalls()

setAssemblyCalls

public void setAssemblyCalls(java.util.List assemblyCalls)

childWithId

protected Pod childWithId(PodUuid podId)

getPodArchive

public java.net.URL getPodArchive()

assemble

public void assemble()

add

public boolean add(java.lang.Object targetChild)
Specified by:
add in interface java.util.Collection
Overrides:
add in class java.beans.beancontext.BeanContextSupport

getChildPodIds

public java.util.Set getChildPodIds()

setChildPodIds

public void setChildPodIds(java.util.Set<PodUuid> childPodIds)

isTransient

public boolean isTransient(java.lang.Object value)
Returns whether the value is the same as a podvar that is transient. (i.e. should not be marshalled) Assumes instances of Pod cannot be imported.

Parameters:
value -
Returns:
true iff the value matches the current value of one of the refs in this pod marked transient

toString

public java.lang.String toString()
Overrides:
toString in class ScriptBeanContext

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection
Overrides:
hashCode in class java.lang.Object


Copyright 2004-2004-2006 TELS Center. All Rights Reserved.