org.objectweb.fractal.adl
Class ComponentVisitorDispatcher

java.lang.Object
  extended by org.objectweb.fractal.task.core.AbstractTaskFactoryUser
      extended by org.objectweb.fractal.adl.VisitorDispatcher<org.objectweb.fractal.adl.components.ComponentContainer>
          extended by org.objectweb.fractal.adl.ComponentVisitorDispatcher
All Implemented Interfaces:
ComponentVisitor, TaskCompositionAttribute, Visitor<org.objectweb.fractal.adl.components.ComponentContainer>, org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController

public class ComponentVisitorDispatcher
extends VisitorDispatcher<org.objectweb.fractal.adl.components.ComponentContainer>
implements ComponentVisitor

A visitor dispatcher for ComponentContainer node.

See Also:
VisitorDispatcher

Field Summary
 
Fields inherited from class org.objectweb.fractal.adl.VisitorDispatcher
CLIENT_VISITOR, taskCompositionFileName, visitorsItf
 
Fields inherited from class org.objectweb.fractal.task.core.AbstractTaskFactoryUser
TASK_FACTORY_ITF_NAME, taskFactoryItf
 
Constructor Summary
ComponentVisitorDispatcher()
           
 
Method Summary
protected  Visitor<org.objectweb.fractal.adl.components.ComponentContainer> castVisitorInterface(java.lang.Object serverItf)
          This method is used by bindFc to cast the given serverItf to a correct type.
protected  java.lang.Object[] getCompositionParameters(java.util.List<org.objectweb.fractal.adl.Node> path, org.objectweb.fractal.adl.components.ComponentContainer node, java.util.Map<java.lang.Object,java.lang.Object> context)
          Returns the parameter to be passed to the newCompositeTask method.
 
Methods inherited from class org.objectweb.fractal.adl.VisitorDispatcher
bindFc, createTask, getTaskCompositionFileName, listFc, lookupFc, setTaskCompositionFileName, toArray, unbindFc, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.adl.Visitor
visit
 

Constructor Detail

ComponentVisitorDispatcher

public ComponentVisitorDispatcher()
Method Detail

castVisitorInterface

protected Visitor<org.objectweb.fractal.adl.components.ComponentContainer> castVisitorInterface(java.lang.Object serverItf)
Description copied from class: VisitorDispatcher
This method is used by bindFc to cast the given serverItf to a correct type. Sub-classes must implements this method to guaranty type safety.

Specified by:
castVisitorInterface in class VisitorDispatcher<org.objectweb.fractal.adl.components.ComponentContainer>

getCompositionParameters

protected java.lang.Object[] getCompositionParameters(java.util.List<org.objectweb.fractal.adl.Node> path,
                                                      org.objectweb.fractal.adl.components.ComponentContainer node,
                                                      java.util.Map<java.lang.Object,java.lang.Object> context)
Description copied from class: VisitorDispatcher
Returns the parameter to be passed to the newCompositeTask method. Cannot return null.

Specified by:
getCompositionParameters in class VisitorDispatcher<org.objectweb.fractal.adl.components.ComponentContainer>


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.