]> 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
slc flow namespace extended (flow:variables, list, map, etc. in flow:arg and spec...
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / xml / FlowNamespaceHandler.java
index f092bb1ac14649647d6ff7d47c3c26e317d535a9..a1d6912aa9328278591580d1e855175400ecb552 100644 (file)
@@ -10,7 +10,17 @@ public class FlowNamespaceHandler extends NamespaceHandlerSupport {
                registerBeanDefinitionDecoratorForAttribute("as-flow",
                                new AsFlowDecorator());
                registerBeanDefinitionParser("param", new ParamDecorator());
-//             registerBeanDefinitionDecoratorForAttribute("var", new ExecutionScopeDecorator());
+                
+               // 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());
        }
 
 }