Class EntityManagerFactoryDependsOnPostProcessor
java.lang.Object
org.springframework.boot.autoconfigure.AbstractDependsOnBeanFactoryPostProcessor
org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
public class EntityManagerFactoryDependsOnPostProcessor
extends AbstractDependsOnBeanFactoryPostProcessor
BeanFactoryPostProcessor
that can be used to dynamically declare that all
EntityManagerFactory
beans should "depend on" one or more specific beans.- Since:
- 2.5.0
- Author:
- Marcel Overdijk, Dave Syer, Phillip Webb, Andy Wilkinson, Andrii Hrytsiuk
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionEntityManagerFactoryDependsOnPostProcessor
(Class<?>... dependsOn) Creates a newEntityManagerFactoryDependsOnPostProcessor
that will set up dependencies upon beans with the given types.EntityManagerFactoryDependsOnPostProcessor
(String... dependsOn) Creates a newEntityManagerFactoryDependsOnPostProcessor
that will set up dependencies upon beans with the given names. -
Method Summary
Methods inherited from class org.springframework.boot.autoconfigure.AbstractDependsOnBeanFactoryPostProcessor
getOrder, postProcessBeanFactory
-
Constructor Details
-
EntityManagerFactoryDependsOnPostProcessor
Creates a newEntityManagerFactoryDependsOnPostProcessor
that will set up dependencies upon beans with the given names.- Parameters:
dependsOn
- names of the beans to depend upon
-
EntityManagerFactoryDependsOnPostProcessor
Creates a newEntityManagerFactoryDependsOnPostProcessor
that will set up dependencies upon beans with the given types.- Parameters:
dependsOn
- types of the beans to depend upon
-