|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for model data mappers. These objects map model data from a parent flow to a sub flow and back again in a flow-state of a web flow.
Model mappers are configured as beans in a Spring application context.
A mapper that is configured as a singleton bean in the application context
should be thread safe! If you have a mapper that is not thread safe, make sure
you add the singleton="false" parameter to its bean definition.
If a mapper needs access to the application context, it can implement an
interface like ApplicationContextAware.
Note that mappers cannot generate checked exceptions since exceptions during model mapping normally indicate an unrecoverable error (e.g. a programming bug).
WebFlow,
ApplicationContext,
ApplicationContextAware| Method Summary | |
void |
mapFromSubFlow(java.util.Map parentFlowModel,
java.util.Map subFlowModel)
Map model data from the sub flow back to the parent flow. |
void |
mapToSubFlow(java.util.Map parentFlowModel,
java.util.Map subFlowModel)
Map model data from the parent flow to the sub flow. |
| Method Detail |
public void mapToSubFlow(java.util.Map parentFlowModel,
java.util.Map subFlowModel)
Map model data from the parent flow to the sub flow. This is called before the sub flow is started.
parentFlowModel - parent flow modelsubFlowModel - sub flow model
public void mapFromSubFlow(java.util.Map parentFlowModel,
java.util.Map subFlowModel)
Map model data from the sub flow back to the parent flow. This is called after the sub flow completes and before the parent flow continues.
parentFlowModel - parent flow modelsubFlowModel - sub flow model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||