com.hammurapi.flow.runtime.impl
Class PassThroughNode<P,K,S,A>

java.lang.Object
  extended by com.hammurapi.flow.runtime.impl.PassThroughNode<P,K,S,A>
Type Parameters:
S - Flow state type.
A - Argument type.
All Implemented Interfaces:
FlowElement, Inlineable, Node<P,K,S,A>

public class PassThroughNode<P,K,S,A>
extends Object
implements Inlineable, Node<P,K,S,A>

Transition which doesn't do any processing - it simply passes invocation from source to targets.

Author:
Pavel Vlasov

Constructor Summary
PassThroughNode()
           
 
Method Summary
 void addPin(String pinName, P pin)
           
 void afterConnect()
           
 void beforeConnect()
           
 Invocable<S,A> getInvocable(String pinName, K connectKey)
           
 Invoker<S,A> getInvoker(String pinName, K connectKey)
           
 boolean inline()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughNode

public PassThroughNode()
Method Detail

getInvocable

public Invocable<S,A> getInvocable(String pinName,
                                   K connectKey)
Specified by:
getInvocable in interface Node<P,K,S,A>

getInvoker

public Invoker<S,A> getInvoker(String pinName,
                               K connectKey)
Specified by:
getInvoker in interface Node<P,K,S,A>

afterConnect

public void afterConnect()
                  throws ConfigurationException
Specified by:
afterConnect in interface FlowElement
Throws:
ConfigurationException

beforeConnect

public void beforeConnect()
                   throws ConfigurationException
Specified by:
beforeConnect in interface FlowElement
Throws:
ConfigurationException

addPin

public void addPin(String pinName,
                   P pin)
Specified by:
addPin in interface Node<P,K,S,A>

inline

public boolean inline()
Specified by:
inline in interface Inlineable
Returns:
True if this inlineable shall be invoked in the same thread with the previous node or transition.