Class EntityManagerFactoryDependsOnPostProcessor
java.lang.Object
org.springframework.boot.autoconfigure.AbstractDependsOnBeanFactoryPostProcessor
org.springframework.boot.jpa.autoconfigure.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:
- 4.0.0
- Author:
- Marcel Overdijk, Dave Syer, Phillip Webb, Andy Wilkinson, Andrii Hrytsiuk
- See Also:
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionEntityManagerFactoryDependsOnPostProcessor(Class<?>... dependsOn) Creates a newEntityManagerFactoryDependsOnPostProcessorthat will set up dependencies upon beans with the given types.EntityManagerFactoryDependsOnPostProcessor(String... dependsOn) Creates a newEntityManagerFactoryDependsOnPostProcessorthat will set up dependencies upon beans with the given names. -
Method Summary
Methods inherited from class AbstractDependsOnBeanFactoryPostProcessor
getOrder, postProcessBeanFactory
-
Constructor Details
-
EntityManagerFactoryDependsOnPostProcessor
Creates a newEntityManagerFactoryDependsOnPostProcessorthat will set up dependencies upon beans with the given names.- Parameters:
dependsOn- names of the beans to depend upon
-
EntityManagerFactoryDependsOnPostProcessor
Creates a newEntityManagerFactoryDependsOnPostProcessorthat will set up dependencies upon beans with the given types.- Parameters:
dependsOn- types of the beans to depend upon
-