|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.support.AbstractFlowAttributeMapper
public abstract class AbstractFlowAttributeMapper
Convenient base class for attribute mapper implementations. Encapsulates common attribute mapper workflow. Contains
no state. Subclasses must override the getInputMapper()
and getOutputMapper()
methods to return the
input mapper and output mapper, respectively.
Constructor Summary | |
---|---|
AbstractFlowAttributeMapper()
|
Method Summary | |
---|---|
MutableAttributeMap |
createFlowInput(RequestContext context)
Create a map of attributes that should be passed as input to a spawning flow. |
protected abstract org.springframework.binding.mapping.AttributeMapper |
getInputMapper()
Returns the input mapper to use to map attributes of a parent flow RequestContext to a subflow input
attribute map . |
protected org.springframework.binding.mapping.MappingContext |
getMappingContext(RequestContext context)
Returns a map of contextual data available during mapping. |
protected abstract org.springframework.binding.mapping.AttributeMapper |
getOutputMapper()
Returns the output mapper to use to map attributes from a subflow output attribute map to the RequestContext . |
void |
mapFlowOutput(AttributeMap subflowOutput,
RequestContext context)
Map output attributes of an ended flow to a resuming parent flow session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFlowAttributeMapper()
Method Detail |
---|
protected abstract org.springframework.binding.mapping.AttributeMapper getInputMapper()
RequestContext
to a subflow input
attribute map
.
createFlowInput(RequestContext)
protected abstract org.springframework.binding.mapping.AttributeMapper getOutputMapper()
RequestContext
.
mapFlowOutput(AttributeMap, RequestContext)
public MutableAttributeMap createFlowInput(RequestContext context)
FlowAttributeMapper
Attributes set in the map returned by this method are availale as input to the subflow when its session is spawned.
createFlowInput
in interface FlowAttributeMapper
context
- the current request execution context, which gives access to the parent flow scope, the request
scope, any event parameters, etcetera
public void mapFlowOutput(AttributeMap subflowOutput, RequestContext context)
FlowAttributeMapper
mapFlowOutput
in interface FlowAttributeMapper
subflowOutput
- the output attributes exposed by the ended subflowcontext
- the current request execution context, which gives access to the parent flow scopeprotected org.springframework.binding.mapping.MappingContext getMappingContext(RequestContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |