org.objectweb.kilim.model
Class ComponentFactory.RTConstructor

java.lang.Object
  extended byorg.objectweb.kilim.model.RtComponentElement
      extended byorg.objectweb.kilim.model.RtComponentSource
          extended byorg.objectweb.kilim.model.RtComponentInterface
              extended byorg.objectweb.kilim.model.RtComponentProvider
                  extended byorg.objectweb.kilim.model.ComponentFactory.RTConstructor
All Implemented Interfaces:
ComponentElement, ComponentInterface, ComponentSource, RuntimeAction, RuntimeElement, RuntimeSource
Enclosing class:
ComponentFactory

private static class ComponentFactory.RTConstructor
extends RtComponentProvider
implements RuntimeAction


Field Summary
private  RuntimeSource[] parameters
           
private  java.lang.String[] typeNames
           
 
Fields inherited from class org.objectweb.kilim.model.RtComponentProvider
callStack
 
Fields inherited from class org.objectweb.kilim.model.RtComponentInterface
fW, pW
 
Fields inherited from class org.objectweb.kilim.model.RtComponentSource
knownValues, mapper, mappingContext, svpStack
 
Fields inherited from class org.objectweb.kilim.model.RtComponentElement
nbComponent, nbElement
 
Constructor Summary
(package private) ComponentFactory.RTConstructor(TpConstructor aCtor, Component aComponent, RuntimeSource aSupport, RuntimeSource[] params, java.lang.String[] tNames)
           
 
Method Summary
 boolean checkAction(java.util.Stack aStack)
          returns whether an action can be performed without any new constructive action.
 boolean checkValue(java.util.Stack exclude)
          returns whether a value can be obtained without having to create new objects
 void execute()
          executes the method, constructor, setter, getter implementing the RuntimeAction.
 boolean hasValue()
          returns whether the source has a value.
private  java.lang.Object perform(boolean provides)
           
 java.lang.Object specificGetValue()
          Method specificGetValue.
 
Methods inherited from class org.objectweb.kilim.model.RtComponentProvider
bindProvider, getEventSourceValue, getKind, getLocalName, getSupport, isCollectionPort, isEventSource, isProperty, isProvider, isSingleValuePort, setEventSourceValue, specificBindValue, specificUnbindValue, unbindProvider
 
Methods inherited from class org.objectweb.kilim.model.RtComponentInterface
addTrigger, bindValue, fireTriggers, getTriggerList, getTriggers, getValue, initializeInstanciation, isModified, removeTrigger, setTriggersDone, triggersDone, unbindValue, update
 
Methods inherited from class org.objectweb.kilim.model.RtComponentSource
addInterfaceListener, evaluationPerformed, getCurrentSVP, getInterfaceListeners, removeInterfaceListener
 
Methods inherited from class org.objectweb.kilim.model.RtComponentElement
containsElement, getContainingComponent, getContainingElement, getElement, getElementDescription, getNbComponent, getNbElement, getQualifiedName, getTarget, getTemplateDefHierarchy, removeElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.kilim.model.RuntimeAction
getEventSourceValue, getTarget, setEventSourceValue
 
Methods inherited from interface org.objectweb.kilim.model.ComponentElement
getContainingComponent, getContainingElement, getElementDescription, getQualifiedName, getTemplateDefHierarchy
 
Methods inherited from interface org.objectweb.kilim.model.RuntimeSource
addInterfaceListener, getTarget, removeInterfaceListener
 

Field Detail

parameters

private RuntimeSource[] parameters

typeNames

private java.lang.String[] typeNames
Constructor Detail

ComponentFactory.RTConstructor

ComponentFactory.RTConstructor(TpConstructor aCtor,
                               Component aComponent,
                               RuntimeSource aSupport,
                               RuntimeSource[] params,
                               java.lang.String[] tNames)
Method Detail

specificGetValue

public java.lang.Object specificGetValue()
                                  throws KilimException
Description copied from class: RtComponentInterface
Method specificGetValue.

Specified by:
specificGetValue in class RtComponentInterface
Returns:
Object
Throws:
KilimException - :

perform

private java.lang.Object perform(boolean provides)
                          throws KilimException
Throws:
KilimException

execute

public void execute()
             throws KilimException
Description copied from interface: RuntimeAction
executes the method, constructor, setter, getter implementing the RuntimeAction.

Specified by:
execute in interface RuntimeAction
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.
See Also:
RuntimeAction.execute()

hasValue

public boolean hasValue()
                 throws KilimException
Description copied from interface: RuntimeSource
returns whether the source has a value. The behaviour depends on the nature of the source. It always returns false when invoked on tagged providers, for example.

Specified by:
hasValue in interface ComponentSource
Returns:
boolean
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or nary ports.
See Also:
org.objectweb.kilim.model.ComponentSource#checkValue()

checkValue

public boolean checkValue(java.util.Stack exclude)
                   throws KilimException
Description copied from interface: RuntimeSource
returns whether a value can be obtained without having to create new objects

Specified by:
checkValue in interface RuntimeSource
Parameters:
exclude - : the exclude stack contains objects beiing in the process of being built.
Returns:
boolean
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.ComponentSource#checkValue()

checkAction

public boolean checkAction(java.util.Stack aStack)
                    throws KilimException
Description copied from interface: RuntimeAction
returns whether an action can be performed without any new constructive action.

Specified by:
checkAction in interface RuntimeAction
Parameters:
aStack - is the stack of runtime element which are under evaluation (i.e. element in the process of a constructive action).
Returns:
boolean
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.RuntimeAction#checkAction()