org.springframework.webflow.action
Class SetAction

java.lang.Object
  extended by org.springframework.webflow.action.AbstractAction
      extended by org.springframework.webflow.action.SetAction
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, Action

public class SetAction
extends AbstractAction

An action that sets an attribute in a scope when executed. Always returns the "success" event.

Author:
Keith Donald

Constructor Summary
SetAction(Expression nameExpression, Expression valueExpression, Class expectedType, ConversionService conversionService)
          Creates a new set attribute action.
 
Method Summary
 String toString()
           
 
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, execute, getEventFactorySupport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetAction

public SetAction(Expression nameExpression,
                 Expression valueExpression,
                 Class expectedType,
                 ConversionService conversionService)
Creates a new set attribute action.

Parameters:
nameExpression - the name of the property to set (required)
valueExpression - the expression to obtain the new property value (required)
expectedType - the expected value type
conversionService - the service to perform the type conversion if the actual value type does not match the expected
Method Detail

toString

public String toString()
Overrides:
toString in class Object