Interface FlowModelRegistry
- All Superinterfaces:
FlowModelLocator
- All Known Implementing Classes:
FlowModelRegistryImpl
A container of flow models. Extends
FlowModelLocator
for accessing registered Flow models for conversion to
flow definitions.
Flow model registries can be configured with a "parent" registry to provide a hook into a larger flow model registry hierarchy.
- Author:
- Keith Donald, Scott Andrews
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerFlowModel
(String id, FlowModelHolder modelHolder) Register a flow model in this registry.void
setParent
(FlowModelRegistry parent) Sets this registry's parent registry.Methods inherited from interface org.springframework.webflow.engine.model.registry.FlowModelLocator
getFlowModel
-
Method Details
-
setParent
Sets this registry's parent registry. When asked by a client to locate a flow model this registry will query it's parent if it cannot fulfill the lookup request itself.- Parameters:
parent
- the parent flow model registry, may be null
-
registerFlowModel
Register a flow model in this registry. Registers a "holder", not the Flow model itself. This allows the actual Flow model to be loaded lazily only when needed, and also rebuilt at runtime when its underlying resource changes without re-deploy.- Parameters:
id
- the id to register the flow model undermodelHolder
- a holder holding the flow model to register
-