|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl
public class FlowDefinitionRegistryImpl
A generic registry implementation for housing one or more flow definitions.
This registry may be refreshed at runtime to "hot reload" refreshable flow definitions. Note that the refresh will only reload already registered flow definitions but will not detect any new flow definitions or remove flow definitions that no longer exist.
Constructor Summary | |
---|---|
FlowDefinitionRegistryImpl()
|
Method Summary | |
---|---|
boolean |
containsFlowDefinition(java.lang.String id)
Queries this registry to determine if a specific flow is contained within it. |
FlowDefinition |
getFlowDefinition(java.lang.String id)
Lookup the flow definition with the specified id . |
int |
getFlowDefinitionCount()
Return the number of flow definitions registered in this registry. |
java.lang.String[] |
getFlowDefinitionIds()
Returns the ids of the flow definitions registered in this registry. |
FlowDefinition[] |
getFlowDefinitions()
Return all flow definitions registered in this registry. |
void |
refresh()
Refresh this flow definition registry, reloading all Flow definitions from their externalized representations. |
void |
refresh(java.lang.String flowId)
Refresh the Flow definition in this registry with the id provided, reloading it from it's
externalized representation. |
void |
registerFlowDefinition(FlowDefinitionHolder flowHolder)
Register a flow definition in this registry. |
void |
removeFlowDefinition(java.lang.String id)
Remove identified flow definition from 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 java.lang.String[] getFlowDefinitionIds()
FlowDefinitionRegistryMBean
getFlowDefinitionIds
in interface FlowDefinitionRegistryMBean
public int getFlowDefinitionCount()
FlowDefinitionRegistryMBean
getFlowDefinitionCount
in interface FlowDefinitionRegistryMBean
public boolean containsFlowDefinition(java.lang.String id)
FlowDefinitionRegistryMBean
containsFlowDefinition
in interface FlowDefinitionRegistryMBean
id
- the flow definition id
public void refresh() throws FlowDefinitionConstructionException
FlowDefinitionRegistryMBean
refresh
in interface FlowDefinitionRegistryMBean
FlowDefinitionConstructionException
public void refresh(java.lang.String flowId) throws NoSuchFlowDefinitionException, FlowDefinitionConstructionException
FlowDefinitionRegistryMBean
id
provided, reloading it from it's
externalized representation.
refresh
in interface FlowDefinitionRegistryMBean
flowId
- the id of the flow definition to refresh
NoSuchFlowDefinitionException
- if a flow with the id provided is not stored in this registry
FlowDefinitionConstructionException
public FlowDefinition getFlowDefinition(java.lang.String id) throws NoSuchFlowDefinitionException, FlowDefinitionConstructionException
FlowDefinitionLocator
id
.
getFlowDefinition
in interface FlowDefinitionLocator
id
- the flow definition id
NoSuchFlowDefinitionException
- when the flow definition with the specified id does not exist
FlowDefinitionConstructionException
- if there is a problem constructing the identified flow definitionpublic void setParent(FlowDefinitionRegistry parent)
FlowDefinitionRegistry
setParent
in interface FlowDefinitionRegistry
parent
- the parent flow definition registry, may be nullpublic FlowDefinition[] getFlowDefinitions() throws FlowDefinitionConstructionException
FlowDefinitionRegistry
getFlowDefinitions
in interface FlowDefinitionRegistry
FlowDefinitionConstructionException
- if there is a problem constructing one of the registered flow
definitionspublic void registerFlowDefinition(FlowDefinitionHolder flowHolder)
FlowDefinitionRegistry
registerFlowDefinition
in interface FlowDefinitionRegistry
flowHolder
- a holder holding the flow definition to registerpublic void removeFlowDefinition(java.lang.String id)
id
- the flow definition idpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |