]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/FlowNamespaceHandler.java
Improve execution core
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / xml / FlowNamespaceHandler.java
index f20b193ca5b1a44abcafea19fc201506fa4c894b..a1d6912aa9328278591580d1e855175400ecb552 100644 (file)
@@ -6,8 +6,21 @@ public class FlowNamespaceHandler extends NamespaceHandlerSupport {
 
        public void init() {
                registerBeanDefinitionParser("flow", new FlowBeanDefinitionParser());
+               registerBeanDefinitionParser("spec", new SpecBeanDefinitionParser());
                registerBeanDefinitionDecoratorForAttribute("as-flow",
                                new AsFlowDecorator());
+               registerBeanDefinitionParser("param", new ParamDecorator());
+                
+               // The objective was to replace
+               // - attribute scope="execution"
+               // - and element "aop:scoped-proxy" 
+               // by a single attribute, using an attribute decorator 
+               // this does not work correctly with other attribute decorators (e.g. 
+               // p namespace) since this decorator needs to be called after all
+               // properties have been set on target bean. 
+               // It works properly with element decorators (called after all attribute
+               // decorators
+               registerBeanDefinitionDecorator("variable", new ExecutionScopeDecorator());
        }
 
 }