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
FlowDefinitionLocator
getFlowDefinition
in interface FlowDefinitionLocator
id
- 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)
FlowDefinitionRegistry
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.containsFlowDefinition
in interface FlowDefinitionRegistry
flowId
- the id of the flow to querypublic int getFlowDefinitionCount()
FlowDefinitionRegistry
getFlowDefinitionCount
in interface FlowDefinitionRegistry
public java.lang.String[] getFlowDefinitionIds()
FlowDefinitionRegistry
getFlowDefinitionIds
in interface FlowDefinitionRegistry
public FlowDefinitionRegistry getParent()
FlowDefinitionRegistry
getParent
in interface FlowDefinitionRegistry
public void setParent(FlowDefinitionRegistry parent)
FlowDefinitionRegistry
setParent
in interface FlowDefinitionRegistry
parent
- the parent flow definition registry, may be nullpublic void registerFlowDefinition(FlowDefinitionHolder definitionHolder)
FlowDefinitionRegistry
registerFlowDefinition
in interface FlowDefinitionRegistry
definitionHolder
- a holder holding the flow definition to registerpublic void registerFlowDefinition(FlowDefinition definition)
FlowDefinitionRegistry
registerFlowDefinition
in interface FlowDefinitionRegistry
definition
- the actual flow definitionpublic void destroy()
public java.lang.String toString()
toString
in class java.lang.Object