* let {{{BeanListBeanFactoryPostProcessor}}} implement {{{org.springframework.core.Ordered}}} to ensure late execution
git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@3054 5a64d73e-33d6-4ccc-9058-23f8668ecac9
This commit is contained in:
@@ -32,6 +32,7 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
|||||||
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||||
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
||||||
import org.springframework.beans.factory.support.ManagedList;
|
import org.springframework.beans.factory.support.ManagedList;
|
||||||
|
import org.springframework.core.Ordered;
|
||||||
import org.synyx.hera.core.PluginRegistry;
|
import org.synyx.hera.core.PluginRegistry;
|
||||||
|
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@ import org.synyx.hera.core.PluginRegistry;
|
|||||||
* @author Oliver Gierke - gierke@synyx.de
|
* @author Oliver Gierke - gierke@synyx.de
|
||||||
*/
|
*/
|
||||||
public class BeanListBeanFactoryPostProcessor implements
|
public class BeanListBeanFactoryPostProcessor implements
|
||||||
BeanFactoryPostProcessor {
|
BeanFactoryPostProcessor, Ordered {
|
||||||
|
|
||||||
private static final Log log =
|
private static final Log log =
|
||||||
LogFactory.getLog(BeanListBeanFactoryPostProcessor.class);
|
LogFactory.getLog(BeanListBeanFactoryPostProcessor.class);
|
||||||
@@ -229,4 +230,16 @@ public class BeanListBeanFactoryPostProcessor implements
|
|||||||
|
|
||||||
return (List<RuntimeBeanReference>) beanReferences;
|
return (List<RuntimeBeanReference>) beanReferences;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Declare lowest precedence to ensure all other
|
||||||
|
* {@link BeanFactoryPostProcessor}s have already been applied.
|
||||||
|
*
|
||||||
|
* @see org.springframework.core.Ordered#getOrder()
|
||||||
|
*/
|
||||||
|
public int getOrder() {
|
||||||
|
|
||||||
|
return Ordered.LOWEST_PRECEDENCE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user