public class FlowModelRegistryImpl extends java.lang.Object implements FlowModelRegistry, FlowModelHolderLocator
Constructor and Description |
---|
FlowModelRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
FlowModel |
getFlowModel(java.lang.String id)
Lookup the flow model with the specified id.
|
FlowModelHolder |
getFlowModelHolder(java.lang.String id)
Lookup the FlowModelHolder with the specified id.
|
void |
registerFlowModel(java.lang.String id,
FlowModelHolder modelHolder)
Register a flow model in this registry.
|
void |
setParent(FlowModelRegistry parent)
Sets this registry's parent registry.
|
java.lang.String |
toString() |
public FlowModel getFlowModel(java.lang.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(java.lang.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 registerpublic FlowModelHolder getFlowModelHolder(java.lang.String id) throws NoSuchFlowModelException
FlowModelHolderLocator
getFlowModelHolder
in interface FlowModelHolderLocator
id
- the flow model identifierNoSuchFlowModelException
- when the flow model with the specified
id does not existpublic java.lang.String toString()
toString
in class java.lang.Object