X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2Fgenerator%2FExecutionFlowGenerator.java;h=d9400e42edf8b89651b7e4d27e5c3202fa7c7436;hb=a75c0516aca20f9a8c8fdd32feee402257ff2b61;hp=db1d276d7975fe705daeddae28920648bb893ca7;hpb=f3850fe5e4bd5fb3f5a55144e834b51606a0f2c1;p=gpl%2Fargeo-slc.git
diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/generator/ExecutionFlowGenerator.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/generator/ExecutionFlowGenerator.java
index db1d276d7..d9400e42e 100644
--- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/generator/ExecutionFlowGenerator.java
+++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/generator/ExecutionFlowGenerator.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.argeo.slc.core.execution.generator;
import java.util.HashMap;
@@ -15,7 +30,6 @@ import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.GenericBeanDefinition;
import org.springframework.core.Ordered;
-import org.springframework.core.PriorityOrdered;
/**
* Generates ExecutionFlows
and Runnables
as
@@ -27,7 +41,7 @@ import org.springframework.core.PriorityOrdered;
* and outputs of a RunnableFactory
.
*/
public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,
- PriorityOrdered {
+ Ordered {
private final Log log = LogFactory.getLog(getClass());
@@ -65,6 +79,8 @@ public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,
* RunnableCallFlowDescriptor
*/
private String flowBeanNamesPrefix = "";
+
+ private int order = Ordered.HIGHEST_PRECEDENCE;
public void postProcessBeanFactory(
ConfigurableListableBeanFactory beanFactory) throws BeansException {
@@ -136,7 +152,11 @@ public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,
}
public int getOrder() {
- return Ordered.HIGHEST_PRECEDENCE;
+ return order;
+ }
+
+ public void setOrder(int order) {
+ this.order = order;
}
public void setSource(ExecutionFlowGeneratorSource source) {