flow definition registry size
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user