|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl
public class FlowDefinitionRegistryImpl
A generic registry implementation for housing one or more flow definitions.
Constructor Summary | |
---|---|
FlowDefinitionRegistryImpl()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlowDefinitionRegistryImpl()
Method Detail |
---|
public FlowDefinition getFlowDefinition(java.lang.String id) throws NoSuchFlowDefinitionException, FlowDefinitionConstructionException
FlowDefinitionLocator
getFlowDefinition
in interface FlowDefinitionLocator
id
- the flow definition identifier
NoSuchFlowDefinitionException
- when the flow definition with the specified id does not exist
FlowDefinitionConstructionException
- 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 query
public 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
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |