Class FlowVariable
java.lang.Object
org.springframework.webflow.core.AnnotatedObject
org.springframework.webflow.engine.FlowVariable
- All Implemented Interfaces:
Annotated
A value object that defines a specification for a flow variable. Such a variable is allocated when a flow starts and
destroyed when that flow ends. This class encapsulates information about the variable and the behavior necessary to
allocate the variable instance in flow scope.
- Author:
- Keith Donald
-
Field Summary
Fields inherited from class org.springframework.webflow.core.AnnotatedObject
CAPTION_PROPERTY, DESCRIPTION_PROPERTY
-
Constructor Summary
ConstructorDescriptionFlowVariable
(String name, VariableValueFactory valueFactory) Creates a new flow variable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(RequestContext context) Creates this flow variable.destroy
(RequestContext context) Destroys this flow variable.boolean
getName()
Returns the name of this variable.int
hashCode()
void
restore
(RequestContext context) Restores this variable's dependencies.toString()
Methods inherited from class org.springframework.webflow.core.AnnotatedObject
getAttributes, getCaption, getDescription, setCaption, setDescription
-
Constructor Details
-
FlowVariable
Creates a new flow variable.- Parameters:
name
- the variable name
-
-
Method Details
-
getName
Returns the name of this variable. -
equals
-
hashCode
public int hashCode() -
create
Creates this flow variable. This method allocates the variable's value in the correct flow scope.- Parameters:
context
- the executing flow
-
restore
Restores this variable's dependencies. This method asks the variable's value factory to restore any references the variable has to transient objects.- Parameters:
context
- the executing flow
-
destroy
Destroys this flow variable. This method removes the variable's value in the correct flow scope.- Parameters:
context
- the executing flow
-
toString
-