org.szegedi.spring.web.jsflow
Interface StateExecutionInterceptor


public interface StateExecutionInterceptor

Interface that can be used as an "around" interceptor for each state execution. If set in the FlowController, its "around" method is invoked after FlowExecutionInterceptor.beforeFlowExecution( javax.servlet.http.HttpServletRequest, String, Context, Scriptable) and before FlowExecutionInterceptor.afterFlowExecution( javax.servlet.http.HttpServletRequest, Context, Scriptable, Exception) as well as before a continuation is restarted (after receiving each noninitial HTTP request).

Version:
$Id: $
Author:
Attila Szegedi

Method Summary
 void aroundStateExecution(org.mozilla.javascript.Script executor, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope)
          Invoked to surround the execution of a flow state.
 

Method Detail

aroundStateExecution

void aroundStateExecution(org.mozilla.javascript.Script executor,
                          org.mozilla.javascript.Context cx,
                          org.mozilla.javascript.Scriptable scope)
Invoked to surround the execution of a flow state.

Parameters:
executor - the executor for the state. It is an implementation of the Rhino Script interface, but implementations shouldn't assume it is a real script, rather just something that can be given a context and a scope and that will subsequently execute a state. Implementations of the interceptor will typically invoke executor.exec(cx, scope) as part of their operation to delegate to the actual flow state execution.
cx - the Rhino context for the invocation
scope - the top level variable scope for the invocation