A factory bean that produces a populated flow registry using a
XmlFlowRegistrar . This is the simplest implementation to use when
using a Spring BeanFactory to deploy an explicit registry of XML-based Flow
definitions for execution.
By default, a configured flow definition will be assigned a registry
identifier equal to the filename of the underlying definition resource, minus
the filename extension. For example, a XML-based flow definition defined in
the file flow1.xml will be identified as flow1
in the registry created by this factory bean.
This class is also BeanFactoryAware and when used with Spring
will automatically create a configured DefaultFlowServiceLocator
for loading Flow artifacts like Actions from the Spring bean factory during
the Flow registration process.
This class is also ResourceLoaderAware; when an instance is
created by a Spring BeanFactory the factory will automatically configure the
XmlFlowRegistrar with a context-relative resource loader for accessing other
resources during Flow assembly.
Usage example:
By default, a configured flow definition will be assigned a registry identifier equal to the filename of the underlying definition resource, minus the filename extension. For example, a XML-based flow definition defined in the file
flow1.xmlwill be identified asflow1in the registry created by this factory bean.This class is also
BeanFactoryAwareand when used with Spring will automatically create a configured DefaultFlowServiceLocator for loading Flow artifacts like Actions from the Spring bean factory during the Flow registration process.This class is also
ResourceLoaderAware; when an instance is created by a Spring BeanFactory the factory will automatically configure the XmlFlowRegistrar with a context-relative resource loader for accessing other resources during Flow assembly. Usage example:<bean id="flowRegistry" class="org.springframework.webflow.registry.XmlFlowRegistryFactoryBean"> <property name="flowLocations"> value="/WEB-INF/flows/*-flow.xml"/> </bean>