Class GenericSubflowAttributeMapper
java.lang.Object
org.springframework.webflow.engine.support.GenericSubflowAttributeMapper
- All Implemented Interfaces:
Serializable
,SubflowAttributeMapper
public final class GenericSubflowAttributeMapper
extends Object
implements SubflowAttributeMapper, Serializable
Simple flow attribute mapper that holds an input and output mapper strategy.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
ConstructorDescriptionGenericSubflowAttributeMapper
(Mapper inputMapper, Mapper outputMapper) Create a new flow attribute mapper using given mapping strategies. -
Method Summary
Modifier and TypeMethodDescriptioncreateSubflowInput
(RequestContext context) Create a map of attributes that should be passed as input to a subflow.void
mapSubflowOutput
(AttributeMap<?> output, RequestContext context) Map output attributes of an ended subflow flow to the resuming parent flow.toString()
-
Constructor Details
-
GenericSubflowAttributeMapper
Create a new flow attribute mapper using given mapping strategies.- Parameters:
inputMapper
- the input mapping strategyoutputMapper
- the output mapping strategy
-
-
Method Details
-
createSubflowInput
Description copied from interface:SubflowAttributeMapper
Create a map of attributes that should be passed as input to a subflow.- Specified by:
createSubflowInput
in interfaceSubflowAttributeMapper
- Parameters:
context
- the current request execution context- Returns:
- a map of attributes to pass as input
-
mapSubflowOutput
Description copied from interface:SubflowAttributeMapper
Map output attributes of an ended subflow flow to the resuming parent flow.- Specified by:
mapSubflowOutput
in interfaceSubflowAttributeMapper
- Parameters:
output
- the output attributes returned by the ended subflowcontext
- the current request execution context, which gives access to the parent flow scope
-
toString
-