|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.execution.FlowExecutionListenerAdapter
public abstract class FlowExecutionListenerAdapter
An abstract adapter class for listeners (observers) of flow execution lifecycle events. The methods in this class are empty. This class exists as convenience for creating listener objects; subclass it and override what you need.
| Constructor Summary | |
|---|---|
FlowExecutionListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
eventSignaled(RequestContext context,
Event event)
Called when an event is signaled in the current state, but prior to any state transition. |
void |
exceptionThrown(RequestContext context,
FlowExecutionException exception)
Called when an exception is thrown during a flow execution, before the exception is handled by any registered handler. |
void |
paused(RequestContext context,
ViewSelection selectedView)
Called when a flow execution is paused, for instance when it is waiting for user input (after event processing). |
void |
requestProcessed(RequestContext context)
Called when a client request has completed processing. |
void |
requestSubmitted(RequestContext context)
Called when any client request is submitted to manipulate this flow execution. |
void |
resumed(RequestContext context)
Called after a flow execution is successfully reactivated after pause (but before event processing). |
void |
sessionEnded(RequestContext context,
FlowSession session,
AttributeMap output)
Called when a flow execution session ends. |
void |
sessionEnding(RequestContext context,
FlowSession session,
MutableAttributeMap output)
Called when the active flow execution session has been asked to end but before it has ended. |
void |
sessionStarted(RequestContext context,
FlowSession session)
Called when a new flow session has started. |
void |
sessionStarting(RequestContext context,
FlowDefinition definition,
MutableAttributeMap input)
Called immediately after a start event is signaled, indicating a new session of the flow is starting but has not yet entered its start state. |
void |
stateEntered(RequestContext context,
StateDefinition previousState,
StateDefinition newState)
Called when a state transitions, after the transition occured. |
void |
stateEntering(RequestContext context,
StateDefinition state)
Called when a state transitions, after the transition is matched but before the transition occurs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowExecutionListenerAdapter()
| Method Detail |
|---|
public void requestSubmitted(RequestContext context)
FlowExecutionListener
requestSubmitted in interface FlowExecutionListenercontext - the source of the eventpublic void requestProcessed(RequestContext context)
FlowExecutionListener
requestProcessed in interface FlowExecutionListenercontext - the source of the event
public void sessionStarting(RequestContext context,
FlowDefinition definition,
MutableAttributeMap input)
FlowExecutionListener
sessionStarting in interface FlowExecutionListenercontext - the source of the eventdefinition - the flow for which a new session is startinginput - a mutable input map to the starting flow session
public void sessionStarted(RequestContext context,
FlowSession session)
FlowExecutionListener
sessionStarted in interface FlowExecutionListenercontext - the source of the event
public void eventSignaled(RequestContext context,
Event event)
FlowExecutionListener
eventSignaled in interface FlowExecutionListenercontext - the source of the eventevent - the event that occured
public void stateEntering(RequestContext context,
StateDefinition state)
throws EnterStateVetoException
FlowExecutionListener
stateEntering in interface FlowExecutionListenercontext - the source of the eventstate - the proposed state to transition to
EnterStateVetoException - when entering the state is not allowed
public void stateEntered(RequestContext context,
StateDefinition previousState,
StateDefinition newState)
FlowExecutionListener
stateEntered in interface FlowExecutionListenercontext - the source of the eventpreviousState - from state of the transitionnewState - to state of the transitionpublic void resumed(RequestContext context)
FlowExecutionListener
resumed in interface FlowExecutionListenercontext - the source of the event
public void paused(RequestContext context,
ViewSelection selectedView)
FlowExecutionListener
paused in interface FlowExecutionListenercontext - the source of the eventselectedView - the view that will display
public void sessionEnding(RequestContext context,
FlowSession session,
MutableAttributeMap output)
FlowExecutionListener
sessionEnding in interface FlowExecutionListenercontext - the source of the eventsession - the current active session that is endingoutput - the flow output produced by the ending session, this map may
be modified by this listener to affect the output returned
public void sessionEnded(RequestContext context,
FlowSession session,
AttributeMap output)
FlowExecutionListener
sessionEnded in interface FlowExecutionListenercontext - the source of the eventsession - ending flow sessionoutput - final, unmodifiable output returned by the ended session
public void exceptionThrown(RequestContext context,
FlowExecutionException exception)
FlowExecutionListenerhandler.
exceptionThrown in interface FlowExecutionListenercontext - the source of the exceptionexception - the exception that occurred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||