Class AbstractDependsOnBeanFactoryPostProcessor
java.lang.Object
org.springframework.boot.autoconfigure.AbstractDependsOnBeanFactoryPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
- Direct Known Subclasses:
EntityManagerFactoryDependsOnPostProcessor
public abstract class AbstractDependsOnBeanFactoryPostProcessor
extends Object
implements BeanFactoryPostProcessor, Ordered
Abstract base class for a
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.- Since:
- 1.3.0
- Author:
- Marcel Overdijk, Dave Syer, Phillip Webb, Andy Wilkinson, Dmytro Nosan
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDependsOnBeanFactoryPostProcessor
(Class<?> beanClass, Class<?>... dependencyTypes) Create an instance with target bean class and dependency types.protected
AbstractDependsOnBeanFactoryPostProcessor
(Class<?> beanClass, Class<? extends FactoryBean<?>> factoryBeanClass, Class<?>... dependencyTypes) Create an instance with target bean, factory bean classes, and dependency types.protected
AbstractDependsOnBeanFactoryPostProcessor
(Class<?> beanClass, Class<? extends 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. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
AbstractDependsOnBeanFactoryPostProcessor
protected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, Class<? extends FactoryBean<?>> factoryBeanClass, String... dependsOn) Create an instance with target bean, factory bean classes, and dependency names.- Parameters:
beanClass
- target bean classfactoryBeanClass
- target factory bean classdependsOn
- dependency names
-
AbstractDependsOnBeanFactoryPostProcessor
protected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, Class<? extends FactoryBean<?>> factoryBeanClass, Class<?>... dependencyTypes) Create an instance with target bean, factory bean classes, and dependency types.- Parameters:
beanClass
- target bean classfactoryBeanClass
- target factory bean classdependencyTypes
- dependency types- Since:
- 2.1.7
-
AbstractDependsOnBeanFactoryPostProcessor
Create an instance with target bean class and dependency names.- Parameters:
beanClass
- target bean classdependsOn
- dependency names- Since:
- 2.0.4
-
AbstractDependsOnBeanFactoryPostProcessor
protected AbstractDependsOnBeanFactoryPostProcessor(Class<?> beanClass, Class<?>... dependencyTypes) Create an instance with target bean class and dependency types.- Parameters:
beanClass
- target bean classdependencyTypes
- dependency types- Since:
- 2.1.7
-
-
Method Details
-
postProcessBeanFactory
- Specified by:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
-
getOrder
public int getOrder()
-