public class FlowDefinitionRegistryImpl extends java.lang.Object implements FlowDefinitionRegistry
| Constructor and Description |
|---|
FlowDefinitionRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFlowDefinition(java.lang.String flowId)
Does this registry contain a flow with the given id? More specifically, is
FlowDefinitionLocator.getFlowDefinition(String)
able to obtain a flow definition instance for the given id? Will ask the parent registry if the flow cannot be
found in this instance. |
void |
destroy() |
FlowDefinition |
getFlowDefinition(java.lang.String id)
Lookup the flow definition with the specified id.
|
int |
getFlowDefinitionCount()
Returns the number of flow definitions registered in this registry.
|
java.lang.String[] |
getFlowDefinitionIds()
Returns the ids of the flows registered in this registry.
|
FlowDefinitionRegistry |
getParent()
Returns this registry's parent registry.
|
void |
registerFlowDefinition(FlowDefinition definition)
Register a flow definition in this registry.
|
void |
registerFlowDefinition(FlowDefinitionHolder definitionHolder)
Register a flow definition in this registry.
|
void |
setParent(FlowDefinitionRegistry parent)
Sets this registry's parent registry.
|
java.lang.String |
toString() |
public FlowDefinition getFlowDefinition(java.lang.String id) throws NoSuchFlowDefinitionException, FlowDefinitionConstructionException
FlowDefinitionLocatorgetFlowDefinition in interface FlowDefinitionLocatorid - the flow definition identifierNoSuchFlowDefinitionException - when the flow definition with the specified id does not existFlowDefinitionConstructionException - if there is a problem constructing the identified flow definitionpublic boolean containsFlowDefinition(java.lang.String flowId)
FlowDefinitionRegistryFlowDefinitionLocator.getFlowDefinition(String)
able to obtain a flow definition instance for the given id? Will ask the parent registry if the flow cannot be
found in this instance.containsFlowDefinition in interface FlowDefinitionRegistryflowId - the id of the flow to querypublic int getFlowDefinitionCount()
FlowDefinitionRegistrygetFlowDefinitionCount in interface FlowDefinitionRegistrypublic java.lang.String[] getFlowDefinitionIds()
FlowDefinitionRegistrygetFlowDefinitionIds in interface FlowDefinitionRegistrypublic FlowDefinitionRegistry getParent()
FlowDefinitionRegistrygetParent in interface FlowDefinitionRegistrypublic void setParent(FlowDefinitionRegistry parent)
FlowDefinitionRegistrysetParent in interface FlowDefinitionRegistryparent - the parent flow definition registry, may be nullpublic void registerFlowDefinition(FlowDefinitionHolder definitionHolder)
FlowDefinitionRegistryregisterFlowDefinition in interface FlowDefinitionRegistrydefinitionHolder - a holder holding the flow definition to registerpublic void registerFlowDefinition(FlowDefinition definition)
FlowDefinitionRegistryregisterFlowDefinition in interface FlowDefinitionRegistrydefinition - the actual flow definitionpublic void destroy()
public java.lang.String toString()
toString in class java.lang.Object