Class ResultEventFactorySelector
java.lang.Object
org.springframework.webflow.action.ResultEventFactorySelector
Helper that selects the
ResultEventFactory
to use for a particular result object.- Author:
- Keith Donald
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSelect the appropriate result event factory for attempts to invoke the given method.Select the appropriate result event factory for the given result.protected ResultEventFactory
Select the appropriate result event factory for given result type.
-
Constructor Details
-
ResultEventFactorySelector
public ResultEventFactorySelector()
-
-
Method Details
-
forMethod
Select the appropriate result event factory for attempts to invoke the given method.- Parameters:
method
- the method- Returns:
- the result event factory
-
forResult
Select the appropriate result event factory for the given result.- Parameters:
result
- the result- Returns:
- the result event factory
-
forType
Select the appropriate result event factory for given result type. This implementation returnsResultObjectBasedEventFactory
if the type ismapped
by that result event factory, otherwiseSuccessEventFactory
is returned.- Parameters:
resultType
- the result type- Returns:
- the result event factory
-