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=5f491951a03e47dc269e036b6564800691847830;hb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;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..5f491951a 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,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * 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 +31,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 +42,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 +80,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 +153,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) {