Permalink
Browse files

add Ordered interface to AnnotationBean

1 parent f48de8a commit 7b7a1ea3fd6d29843134ea27d20047095fafea99 @feilaoda feilaoda committed Dec 20, 2016
@@ -26,6 +26,7 @@
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
+import org.springframework.core.Ordered;
import org.springframework.util.ClassUtils;
import java.lang.reflect.Field;
@@ -45,7 +46,7 @@
* <p>
* Created by fld on 16/5/13.
*/
-public class AnnotationBean implements DisposableBean, BeanFactoryPostProcessor, BeanPostProcessor, BeanFactoryAware {
+public class AnnotationBean implements DisposableBean, BeanFactoryPostProcessor, BeanPostProcessor, BeanFactoryAware, Ordered {
private String id;
@@ -559,4 +560,9 @@ public void setId(String id) {
public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
this.beanFactory = beanFactory;
}
+
+ @Override
+ public int getOrder() {
+ return 0;
+ }
}

0 comments on commit 7b7a1ea

Please sign in to comment.