org.springframework.webflow.action
Class SetAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
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(org.springframework.binding.expression.SettableExpression attributeExpression,
ScopeType scope,
org.springframework.binding.expression.Expression valueExpression)
Creates a new set attribute action. |
Method Summary |
protected Event |
doExecute(RequestContext context)
Template hook method subclasses should override to encapsulate their specific action execution logic. |
protected org.springframework.binding.expression.EvaluationContext |
getEvaluationContext(RequestContext context)
Template method subclasses may override to customize the expression evaluation context. |
Methods inherited from class org.springframework.webflow.action.AbstractAction |
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetAction
public SetAction(org.springframework.binding.expression.SettableExpression attributeExpression,
ScopeType scope,
org.springframework.binding.expression.Expression valueExpression)
- Creates a new set attribute action.
- Parameters:
attributeExpression
- the writeable attribute expressionscope
- the target scope of the attributevalueExpression
- the evaluatable attribute value expression
doExecute
protected Event doExecute(RequestContext context)
throws java.lang.Exception
- Description copied from class:
AbstractAction
- Template hook method subclasses should override to encapsulate their specific action execution logic.
- Specified by:
doExecute
in class AbstractAction
- Parameters:
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"
- Returns:
- the action result event
- Throws:
java.lang.Exception
- an unrecoverable exception occured, either checked or unchecked
getEvaluationContext
protected org.springframework.binding.expression.EvaluationContext getEvaluationContext(RequestContext context)
- Template method subclasses may override to customize the expression evaluation context. This implementation
returns null.
- Parameters:
context
- the request context
- Returns:
- the evaluation context
Copyright © 2004-2007. All Rights Reserved.