org.springframework.webflow.engine.builder
Class DefaultFlowServiceLocator

java.lang.Object
  extended by org.springframework.webflow.engine.builder.BaseFlowServiceLocator
      extended by org.springframework.webflow.engine.builder.DefaultFlowServiceLocator
All Implemented Interfaces:
FlowServiceLocator
Direct Known Subclasses:
MockFlowServiceLocator

public class DefaultFlowServiceLocator
extends BaseFlowServiceLocator

The default flow service locator implementation that obtains subflow definitions from a dedicated FlowDefinitionRegistry and obtains the remaining services from a generic Spring BeanFactory.

Author:
Keith Donald
See Also:
FlowDefinitionRegistry, FlowServiceLocator.getSubflow(String), BeanFactory

Constructor Summary
DefaultFlowServiceLocator(FlowDefinitionRegistry subflowRegistry, org.springframework.beans.factory.BeanFactory beanFactory)
          Creates a flow service locator that retrieves subflows from the provided registry and additional artifacts from the provided bean factory.
DefaultFlowServiceLocator(java.lang.String subflowRegistryBeanId, org.springframework.beans.factory.BeanFactory beanFactory)
          Convenience flow service locator constructor that looks up a flow definition registry using given bean id in given bean factory.
 
Method Summary
 org.springframework.beans.factory.BeanFactory getBeanFactory()
          Returns a generic bean (service) registry for accessing arbitrary beans.
 Flow getSubflow(java.lang.String id)
          Returns the Flow to be used as a subflow with the provided id.
protected  FlowDefinitionRegistry getSubflowRegistry()
          Returns the flow definition registry used to lookup subflows.
 
Methods inherited from class org.springframework.webflow.engine.builder.BaseFlowServiceLocator
addWebFlowConverters, containsBean, createConversionService, getAction, getAttributeMapper, getBean, getBeanInvokingActionFactory, getBeanType, getConversionService, getExceptionHandler, getExpressionParser, getFlowArtifactFactory, getResourceLoader, getTargetStateResolver, getTransitionCriteria, getViewSelector, setBeanInvokingActionFactory, setConversionService, setExpressionParser, setFlowArtifactFactory, setResourceLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFlowServiceLocator

public DefaultFlowServiceLocator(FlowDefinitionRegistry subflowRegistry,
                                 org.springframework.beans.factory.BeanFactory beanFactory)
Creates a flow service locator that retrieves subflows from the provided registry and additional artifacts from the provided bean factory.

Parameters:
subflowRegistry - the registry for loading subflows
beanFactory - the spring bean factory

DefaultFlowServiceLocator

public DefaultFlowServiceLocator(java.lang.String subflowRegistryBeanId,
                                 org.springframework.beans.factory.BeanFactory beanFactory)
Convenience flow service locator constructor that looks up a flow definition registry using given bean id in given bean factory. The registry is used to retrieve subflows. All additional artifacts are looked up in the provided bean factory.

Parameters:
subflowRegistryBeanId - the bean id of the subflow FlowDefinitionRegistry
beanFactory - the Spring bean factory
Since:
1.0.2
Method Detail

getSubflow

public Flow getSubflow(java.lang.String id)
                throws FlowArtifactLookupException
Description copied from interface: FlowServiceLocator
Returns the Flow to be used as a subflow with the provided id.

Specified by:
getSubflow in interface FlowServiceLocator
Overrides:
getSubflow in class BaseFlowServiceLocator
Parameters:
id - the flow id
Returns:
the flow to be used as a subflow
Throws:
FlowArtifactLookupException - when no such flow is found

getBeanFactory

public org.springframework.beans.factory.BeanFactory getBeanFactory()
Description copied from interface: FlowServiceLocator
Returns a generic bean (service) registry for accessing arbitrary beans.

Specified by:
getBeanFactory in interface FlowServiceLocator
Overrides:
getBeanFactory in class BaseFlowServiceLocator
Returns:
the generic service registry

getSubflowRegistry

protected FlowDefinitionRegistry getSubflowRegistry()
Returns the flow definition registry used to lookup subflows.

Returns:
the flow definition registry


Copyright © 2004-2007. All Rights Reserved.