Class ResultEventFactorySelector

java.lang.Object
org.springframework.webflow.action.ResultEventFactorySelector

public class ResultEventFactorySelector extends Object
Helper that selects the ResultEventFactory to use for a particular result object.
Author:
Keith Donald
See Also:
  • Constructor Details

    • ResultEventFactorySelector

      public ResultEventFactorySelector()
  • Method Details

    • forMethod

      public ResultEventFactory forMethod(Method method)
      Select the appropriate result event factory for attempts to invoke the given method.
      Parameters:
      method - the method
      Returns:
      the result event factory
    • forResult

      public ResultEventFactory forResult(Object result)
      Select the appropriate result event factory for the given result.
      Parameters:
      result - the result
      Returns:
      the result event factory
    • forType

      protected ResultEventFactory forType(Class<?> resultType)
      Select the appropriate result event factory for given result type. This implementation returns ResultObjectBasedEventFactory if the type is mapped by that result event factory, otherwise SuccessEventFactory is returned.
      Parameters:
      resultType - the result type
      Returns:
      the result event factory