org.springframework.webflow.action
Class ActionResultExposer

java.lang.Object
  extended by org.springframework.webflow.action.ActionResultExposer
All Implemented Interfaces:
Serializable

public class ActionResultExposer
extends Object
implements Serializable

Specifies how an action result value should be exposed to an executing flow. The return value is exposed as an attribute in a configured scope.

Author:
Keith Donald
See Also:
EvaluateAction, Serialized Form

Constructor Summary
ActionResultExposer(Expression resultExpression, Class expectedResultType, ConversionService conversionService)
          Creates a action result exposer
 
Method Summary
 void exposeResult(Object result, RequestContext context)
          Expose given bean method return value in given flow execution request context.
 Class getExpectedResultType()
          Returns the desired result type to be exposed
 Expression getNameExpression()
          Returns name of the attribute to index the return value with.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionResultExposer

public ActionResultExposer(Expression resultExpression,
                           Class expectedResultType,
                           ConversionService conversionService)
Creates a action result exposer

Parameters:
resultExpression - the result expression
expectedResultType - the expected result type
Method Detail

getNameExpression

public Expression getNameExpression()
Returns name of the attribute to index the return value with.


getExpectedResultType

public Class getExpectedResultType()
Returns the desired result type to be exposed


exposeResult

public void exposeResult(Object result,
                         RequestContext context)
Expose given bean method return value in given flow execution request context.

Parameters:
result - the return value
context - the request context

toString

public String toString()
Overrides:
toString in class Object