public abstract class AbstractDependsOnBeanFactoryPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
BeanFactoryPostProcessor
that can be used to
dynamically declare that all beans of a specific type should depend on specific other
beans identified by name or type.BeanDefinition.setDependsOn(String[])
Modifier | Constructor and Description |
---|---|
protected |
AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass,
Class<?>... dependencyTypes)
Create an instance with target bean class and dependency types.
|
protected |
AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass,
Class<? extends org.springframework.beans.factory.FactoryBean<?>> factoryBeanClass,
Class<?>... dependencyTypes)
Create an instance with target bean, factory bean classes, and dependency types.
|
protected |
AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass,
Class<? extends org.springframework.beans.factory.FactoryBean<?>> factoryBeanClass,
String... dependsOn)
Create an instance with target bean, factory bean classes, and dependency names.
|
protected |
AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass,
String... dependsOn)
Create an instance with target bean class and dependency names.
|
Modifier and Type | Method and Description |
---|---|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, Class<? extends org.springframework.beans.factory.FactoryBean<?>> factoryBeanClass, String... dependsOn)
beanClass
- target bean classfactoryBeanClass
- target factory bean classdependsOn
- dependency namesprotected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, Class<? extends org.springframework.beans.factory.FactoryBean<?>> factoryBeanClass, Class<?>... dependencyTypes)
beanClass
- target bean classfactoryBeanClass
- target factory bean classdependencyTypes
- dependency typesprotected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, String... dependsOn)
beanClass
- target bean classdependsOn
- dependency namesCopyright © 2019 Pivotal Software, Inc.. All rights reserved.