|
|
|
@ -30,6 +30,7 @@ import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
|
|
|
|
import org.springframework.beans.factory.config.BeanDefinition;
|
|
|
|
|
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
|
|
|
|
|
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
|
|
|
|
import org.springframework.core.Ordered;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -45,7 +46,7 @@ import org.springframework.util.StringUtils;
|
|
|
|
|
* @since 1.3.0
|
|
|
|
|
* @see BeanDefinition#setDependsOn(String[])
|
|
|
|
|
*/
|
|
|
|
|
public abstract class AbstractDependsOnBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
|
|
|
|
|
public abstract class AbstractDependsOnBeanFactoryPostProcessor implements BeanFactoryPostProcessor, Ordered {
|
|
|
|
|
|
|
|
|
|
private final Class<?> beanClass;
|
|
|
|
|
|
|
|
|
@ -114,6 +115,11 @@ public abstract class AbstractDependsOnBeanFactoryPostProcessor implements BeanF
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int getOrder() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Set<String> getBeanNames(ListableBeanFactory beanFactory) {
|
|
|
|
|
Set<String> names = getBeanNames(beanFactory, this.beanClass);
|
|
|
|
|
if (this.factoryBeanClass != null) {
|
|
|
|
|