|
|||||||||
| 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.
| 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 FlowDefinitionRegistryMBeanpublic int getFlowDefinitionCount()
FlowDefinitionRegistryMBean
getFlowDefinitionCount in interface FlowDefinitionRegistryMBeanpublic boolean containsFlowDefinition(java.lang.String id)
FlowDefinitionRegistryMBean
containsFlowDefinition in interface FlowDefinitionRegistryMBeanid - the flow definition id
public void refresh()
throws FlowDefinitionConstructionException
FlowDefinitionRegistryMBean
refresh in interface FlowDefinitionRegistryMBeanFlowDefinitionConstructionException
public void refresh(java.lang.String flowId)
throws NoSuchFlowDefinitionException,
FlowDefinitionConstructionException
FlowDefinitionRegistryMBeanid
provided, reloading it from it's externalized representation
refresh in interface FlowDefinitionRegistryMBeanflowId - 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
FlowDefinitionLocatorid.
getFlowDefinition in interface FlowDefinitionLocatorid - 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 FlowDefinitionRegistryparent - the parent flow definition registry, may be null
public FlowDefinition[] getFlowDefinitions()
throws FlowDefinitionConstructionException
FlowDefinitionRegistry
getFlowDefinitions in interface FlowDefinitionRegistryFlowDefinitionConstructionException - if there is a problem constructing
one of the registered flow definitionspublic void registerFlowDefinition(FlowDefinitionHolder flowHolder)
FlowDefinitionRegistry
registerFlowDefinition in interface FlowDefinitionRegistryflowHolder - 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 | ||||||||