]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/FlowNamespaceHandler.java
1 package org
.argeo
.slc
.core
.execution
.xml
;
3 import org
.springframework
.beans
.factory
.xml
.NamespaceHandlerSupport
;
5 public class FlowNamespaceHandler
extends NamespaceHandlerSupport
{
8 registerBeanDefinitionParser("flow", new FlowBeanDefinitionParser());
9 registerBeanDefinitionParser("spec", new SpecBeanDefinitionParser());
10 registerBeanDefinitionDecoratorForAttribute("as-flow",
11 new AsFlowDecorator());
12 registerBeanDefinitionParser("param", new ParamDecorator());
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
23 registerBeanDefinitionDecorator("variable", new ExecutionScopeDecorator());