| java.lang.Object org.springframework.webflow.execution.support.EventFactorySupport
All known Subclasses: org.springframework.webflow.action.SuccessEventFactory, org.springframework.webflow.action.ResultObjectBasedEventFactory,
EventFactorySupport | public class EventFactorySupport (Code) | | A convenience support class assisting in the creation of
Event objects.
This class can be used as a simple utility class when you need to create
common event objects. Alternatively you could extend it as a base support class
when creating custom event factories.
author: Keith Donald author: Erwin Vervaet |
error | public Event error(Object source)(Code) | | Returns an "error" event.
Parameters: source - the source of the event |
event | public Event event(Object source, boolean booleanResult)(Code) | | Returns an event to communicate an occurrence of a boolean expression.
Parameters: source - the source of the event Parameters: booleanResult - the boolean yes or no |
event | public Event event(Object source, String eventId)(Code) | | Returns a event with the specified identifier.
Parameters: source - the source of the event Parameters: eventId - the result event identifier the event |
event | public Event event(Object source, String eventId, AttributeMap attributes)(Code) | | Returns a event with the specified identifier and the specified set of
attributes.
Parameters: source - the source of the event Parameters: eventId - the result event identifier Parameters: attributes - the event payload attributes the event |
event | public Event event(Object source, String eventId, String attributeName, Object attributeValue)(Code) | | Returns a result event with the specified identifier and
a single attribute.
Parameters: source - the source of the event Parameters: eventId - the result id Parameters: attributeName - the attribute name Parameters: attributeValue - the attribute value the event |
getExceptionAttributeName | public String getExceptionAttributeName()(Code) | | |
getResultAttributeName | public String getResultAttributeName()(Code) | | |
no | public Event no(Object source)(Code) | | Returns a "no" result event.
Parameters: source - the source of the event |
setErrorEventId | public void setErrorEventId(String errorEventId)(Code) | | |
setExceptionAttributeName | public void setExceptionAttributeName(String exceptionAttributeName)(Code) | | |
setNoEventId | public void setNoEventId(String noEventId)(Code) | | |
setNullEventId | public void setNullEventId(String nullEventId)(Code) | | |
setResultAttributeName | public void setResultAttributeName(String resultAttributeName)(Code) | | |
setSuccessEventId | public void setSuccessEventId(String successEventId)(Code) | | |
setYesEventId | public void setYesEventId(String yesEventId)(Code) | | |
success | public Event success(Object source)(Code) | | Returns a "success" event.
Parameters: source - the source of the event |
yes | public Event yes(Object source)(Code) | | Returns a "yes" event.
Parameters: source - the source of the event |
|
|