DATACMNS-325 - RepositoryInterfaceAwareBeanPostProcess now implements PriorityOrdered.

This makes sure it is also applied in cases of dependency lookups for {{BeanPostProcessor}} implementation's dependencies.
This commit is contained in:
Oliver Gierke
2013-05-04 13:50:52 +02:00
parent 71a251c4e1
commit 8074bc87e8

View File

@@ -27,6 +27,8 @@ import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter;
import org.springframework.beans.factory.config.TypedStringValue;
import org.springframework.core.Ordered;
import org.springframework.core.PriorityOrdered;
import org.springframework.util.ClassUtils;
/**
@@ -38,7 +40,7 @@ import org.springframework.util.ClassUtils;
* @author Oliver Gierke
*/
class RepositoryInterfaceAwareBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter implements
BeanFactoryAware {
BeanFactoryAware, PriorityOrdered {
private static final Logger LOGGER = LoggerFactory.getLogger(RepositoryInterfaceAwareBeanPostProcessor.class);
private static final Class<?> REPOSITORY_TYPE = RepositoryFactoryBeanSupport.class;
@@ -114,4 +116,12 @@ class RepositoryInterfaceAwareBeanPostProcessor extends InstantiationAwareBeanPo
return Void.class;
}
}
/*
* (non-Javadoc)
* @see org.springframework.core.Ordered#getOrder()
*/
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE - 1;
}
}