Spring Web Flow

org.springframework.webflow.action
Class SuccessEventFactory

java.lang.Object
  extended by org.springframework.webflow.action.EventFactorySupport
      extended by org.springframework.webflow.action.SuccessEventFactory
All Implemented Interfaces:
ResultEventFactory

public class SuccessEventFactory
extends EventFactorySupport
implements ResultEventFactory

Default implementation of the resultObject-to-event mapping interface. Always returns the "success" event.

Author:
Keith Donald

Constructor Summary
SuccessEventFactory()
           
 
Method Summary
 Event createResultEvent(java.lang.Object source, java.lang.Object resultObject, RequestContext context)
          Create an event instance from the result object.
 
Methods inherited from class org.springframework.webflow.action.EventFactorySupport
error, error, event, event, event, event, getErrorEventId, getExceptionAttributeName, getNoEventId, getNullEventId, getResultAttributeName, getSuccessEventId, getYesEventId, no, setErrorEventId, setExceptionAttributeName, setNoEventId, setNullEventId, setResultAttributeName, setSuccessEventId, setYesEventId, success, success, yes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuccessEventFactory

public SuccessEventFactory()
Method Detail

createResultEvent

public Event createResultEvent(java.lang.Object source,
                               java.lang.Object resultObject,
                               RequestContext context)
Description copied from interface: ResultEventFactory
Create an event instance from the result object.

Specified by:
createResultEvent in interface ResultEventFactory
Parameters:
source - the source of the event
resultObject - the result object, typically the return value of a bean method
context - a flow execution request context
Returns:
the event

Spring Web Flow