com.hammurapi.flow.runtime
Interface Invocation<S,A>

Type Parameters:
S - Flow state type.
A - Argument type.
All Superinterfaces:
Serializable

public interface Invocation<S,A>
extends Serializable

Provides invocation details for Java methods and is also used for invocation serialization.

Author:
Pavel

Nested Class Summary
static interface Invocation.InvocationResult
          Result of invocation
 
Field Summary
static Invocation<?,?> INSTANCE
          Implementations set this constant to provide methods access to properties and context in implementation-neutral way.
 
Method Summary
 A[] getArguments()
           
 Context getContext()
           
 S getFlowState()
           
 List<ProcessingPathElement> getProcessingPath()
           
 PropertySet getProperties()
           
 

Field Detail

INSTANCE

static final Invocation<?,?> INSTANCE
Implementations set this constant to provide methods access to properties and context in implementation-neutral way.

Method Detail

getProperties

PropertySet getProperties()
Returns:
Properties.

getContext

Context getContext()
Returns:
Invocation context.

getProcessingPath

List<ProcessingPathElement> getProcessingPath()
Returns:
processing path.

getArguments

A[] getArguments()
Returns:
Arguments.

getFlowState

S getFlowState()
Returns:
Flow state - a shared object available to all invocations.