public class ResultEventFactorySelector
extends java.lang.Object
ResultEventFactory to use for a particular result object.EvaluateAction| Constructor and Description |
|---|
ResultEventFactorySelector() |
| Modifier and Type | Method and Description |
|---|---|
ResultEventFactory |
forMethod(java.lang.reflect.Method method)
Select the appropriate result event factory for attempts to invoke the given method.
|
ResultEventFactory |
forResult(java.lang.Object result)
Select the appropriate result event factory for the given result.
|
protected ResultEventFactory |
forType(java.lang.Class<?> resultType)
Select the appropriate result event factory for given result type.
|
public ResultEventFactory forMethod(java.lang.reflect.Method method)
method - the methodpublic ResultEventFactory forResult(java.lang.Object result)
result - the resultprotected ResultEventFactory forType(java.lang.Class<?> resultType)
ResultObjectBasedEventFactory if the type is
mapped by that result event factory, otherwise
SuccessEventFactory is returned.resultType - the result type