public class FlowModelRegistryImpl extends Object implements FlowModelRegistry
Constructor and Description |
---|
FlowModelRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
FlowModel |
getFlowModel(String id)
Lookup the flow model with the specified id.
|
void |
registerFlowModel(String id,
FlowModelHolder modelHolder)
Register a flow model in this registry.
|
void |
setParent(FlowModelRegistry parent)
Sets this registry's parent registry.
|
String |
toString() |
public FlowModel getFlowModel(String id) throws NoSuchFlowModelException
FlowModelLocator
getFlowModel
in interface FlowModelLocator
id
- the flow model identifierNoSuchFlowModelException
- when the flow model with the specified id does not existpublic void setParent(FlowModelRegistry parent)
FlowModelRegistry
setParent
in interface FlowModelRegistry
parent
- the parent flow model registry, may be nullpublic void registerFlowModel(String id, FlowModelHolder modelHolder)
FlowModelRegistry
registerFlowModel
in interface FlowModelRegistry
id
- the id to register the flow model undermodelHolder
- a holder holding the flow model to register