import org.springframework.beans.factory.support.BeanDefinitionRegistry;\r
import org.springframework.beans.factory.support.GenericBeanDefinition;\r
import org.springframework.core.Ordered;\r
-import org.springframework.core.PriorityOrdered;\r
\r
/**\r
* Generates <code>ExecutionFlows</code> and <code>Runnables</code> as\r
* and outputs of a <code>RunnableFactory</code>.\r
*/\r
public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,\r
- PriorityOrdered {\r
+ Ordered {\r
\r
private final Log log = LogFactory.getLog(getClass());\r
\r
* <code>RunnableCallFlowDescriptor</code>\r
*/\r
private String flowBeanNamesPrefix = "";\r
+ \r
+ private int order = Ordered.HIGHEST_PRECEDENCE;\r
\r
public void postProcessBeanFactory(\r
ConfigurableListableBeanFactory beanFactory) throws BeansException {\r
}\r
\r
public int getOrder() {\r
- return Ordered.HIGHEST_PRECEDENCE;\r
+ return order;\r
+ }\r
+\r
+ public void setOrder(int order) {\r
+ this.order = order;\r
}\r
\r
public void setSource(ExecutionFlowGeneratorSource source) {\r
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.core.Ordered;
-import org.springframework.core.PriorityOrdered;
import org.springframework.osgi.service.exporter.support.ExportContextClassLoader;
import org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean;
@SuppressWarnings(value = { "unchecked" })
public class MultipleServiceExporterPostProcessor implements
- BeanFactoryPostProcessor, PriorityOrdered {
+ BeanFactoryPostProcessor, Ordered {
private final static Log log = LogFactory
.getLog(MultipleServiceExporterPostProcessor.class);
private Class osgiServiceFactoryClass = OsgiServiceFactoryBean.class;
private Boolean useServiceProviderContextClassLoader = false;
+
+ private int order = Ordered.LOWEST_PRECEDENCE;
public void postProcessBeanFactory(
ConfigurableListableBeanFactory beanFactory) throws BeansException {
}
public int getOrder() {
- return Ordered.LOWEST_PRECEDENCE;
+ return order;
+ }
+
+ public void setOrder(int order) {
+ this.order = order;
}
public void setUseServiceProviderContextClassLoader(