com.hammurapi.flow.runtime.impl
Class PassThroughTransition<S,A>

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

public class PassThroughTransition<S,A>
extends Object
implements Transition<S,A>, Inlineable

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

Author:
Pavel Vlasov

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

Constructor Detail

PassThroughTransition

public PassThroughTransition()
Method Detail

getInvocable

public Invocable<S,A> getInvocable()
Specified by:
getInvocable in interface Transition<S,A>

getInvoker

public Invoker<S,A> getInvoker()
Specified by:
getInvoker in interface Transition<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

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.