org.springframework.webflow.config
Class WebFlowConfigNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.springframework.webflow.config.WebFlowConfigNamespaceHandler
All Implemented Interfaces:
org.springframework.beans.factory.xml.NamespaceHandler

public class WebFlowConfigNamespaceHandler
extends org.springframework.beans.factory.xml.NamespaceHandlerSupport

NamespaceHandler for the webflow-config namespace.

Provides bean definition parsers for the <executor> and <registry> tags. An executor tag can include an execution-listeners tag and a registry tag can include location tags.

Using the executor tag you can configure a FlowExecutorFactoryBean that creates a FlowExecutor. The executor tag allows you to specify the repository type and a reference to a registry.

       <flow:executor id="registry" registry-ref="registry" repository-type="continuation" >
           <flow:execution-listeners>
               <flow:listener ref="listener1" />
               <flow:listener ref="listener2" ref="*" />
               <flow:listener ref="listener3" ref="flow1, flow2, flow3" />
           <flow:execution-listeners />
       </flow:executor>
 

Using the registry tag you can configure an XmlFlowRegistryFactoryBean to create a registry for use by any number of executors. The registry tag supports in-line flow definition locations.

       <flow:registry id="registry">
           <flow:location path="/path/to/flow.xml" />
           <flow:location path="/path/with/wildcards/*-flow.xml" />
       </flow:registry>
 

Author:
Ben Hale

Constructor Summary
WebFlowConfigNamespaceHandler()
           
 
Method Summary
 void init()
           
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, findDecoratorForNode, findParserForElement, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebFlowConfigNamespaceHandler

public WebFlowConfigNamespaceHandler()
Method Detail

init

public void init()


Copyright © 2004-2007. All Rights Reserved.