org.springframework.webflow.engine.support
Class BeanFactoryFlowVariable
java.lang.Object
org.springframework.webflow.engine.AnnotatedObject
org.springframework.webflow.engine.FlowVariable
org.springframework.webflow.engine.support.BeanFactoryFlowVariable
- All Implemented Interfaces:
- java.io.Serializable, Annotated
public class BeanFactoryFlowVariable
- extends FlowVariable
A concrete flow variable subclass that obtains variable values from a Spring BeanFactory
.
- Author:
- Keith Donald, Erwin Vervaet
- See Also:
- Serialized Form
Constructor Summary |
BeanFactoryFlowVariable(java.lang.String name,
org.springframework.beans.factory.BeanFactory beanFactory,
ScopeType scope)
Convenience constructor to create a new bean factory flow variable. |
BeanFactoryFlowVariable(java.lang.String variableName,
java.lang.String beanName,
org.springframework.beans.factory.BeanFactory beanFactory,
ScopeType scope)
Creates a new bean factory flow variable. |
Method Summary |
protected java.lang.Object |
createVariableValue(RequestContext context)
Hook method that needs to be implemented by subclasses to calculate the value of this flow variable based on the
information available in the request context. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BeanFactoryFlowVariable
public BeanFactoryFlowVariable(java.lang.String name,
org.springframework.beans.factory.BeanFactory beanFactory,
ScopeType scope)
- Convenience constructor to create a new bean factory flow variable. Defaults the bean name to the variable name.
- Parameters:
name
- the variable name which will also be used as the bean namebeanFactory
- the bean factory where initial variable values will be obtainedscope
- the variable scope- Since:
- 1.0.2
BeanFactoryFlowVariable
public BeanFactoryFlowVariable(java.lang.String variableName,
java.lang.String beanName,
org.springframework.beans.factory.BeanFactory beanFactory,
ScopeType scope)
- Creates a new bean factory flow variable.
- Parameters:
variableName
- the variable namebeanName
- the bean name, will default to the variable name if not specifiedbeanFactory
- the bean factory where initial variable values will be obtainedscope
- the variable scope
createVariableValue
protected java.lang.Object createVariableValue(RequestContext context)
- Description copied from class:
FlowVariable
- Hook method that needs to be implemented by subclasses to calculate the value of this flow variable based on the
information available in the request context.
- Specified by:
createVariableValue
in class FlowVariable
- Parameters:
context
- the flow execution request context
- Returns:
- the flow variable value
Copyright © 2004-2007. All Rights Reserved.