]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/FlowNamespaceHandler.java
Merge remote-tracking branch 'origin/master' into testing
[gpl/argeo-slc.git] / legacy / org.argeo.slc.spring / src / org / argeo / slc / core / execution / xml / FlowNamespaceHandler.java
1 package org.argeo.slc.core.execution.xml;
2
3 import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
4
5 public class FlowNamespaceHandler extends NamespaceHandlerSupport {
6
7 public void init() {
8 registerBeanDefinitionParser("flow", new FlowBeanDefinitionParser());
9 registerBeanDefinitionParser("spec", new SpecBeanDefinitionParser());
10 registerBeanDefinitionDecoratorForAttribute("as-flow",
11 new AsFlowDecorator());
12 registerBeanDefinitionParser("param", new ParamDecorator());
13
14 // The objective was to replace
15 // - attribute scope="execution"
16 // - and element "aop:scoped-proxy"
17 // by a single attribute, using an attribute decorator
18 // this does not work correctly with other attribute decorators (e.g.
19 // p namespace) since this decorator needs to be called after all
20 // properties have been set on target bean.
21 // It works properly with element decorators (called after all attribute
22 // decorators
23 registerBeanDefinitionDecorator("variable", new ExecutionScopeDecorator());
24 }
25
26 }