flow definition registry size

This commit is contained in:
Keith Donald
2008-04-11 13:40:58 +00:00
parent bc1d154164
commit 769cb5a597
2 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,12 @@ import org.springframework.webflow.definition.FlowDefinition;
*/
public interface FlowDefinitionRegistry extends FlowDefinitionLocator {
/**
* Returns the number of flow definitions registered in this registry.
* @return the flow definition count
*/
public int getFlowDefinitionCount();
/**
* Sets this registry's parent registry. When asked by a client to locate a flow definition this registry will query
* it's parent if it cannot fulfill the lookup request itself.

View File

@@ -74,6 +74,10 @@ public class FlowDefinitionRegistryImpl implements FlowDefinitionRegistry {
// implementing FlowDefinitionRegistry
public int getFlowDefinitionCount() {
return flowDefinitions.size();
}
public void setParent(FlowDefinitionRegistry parent) {
this.parent = parent;
}