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:
  • Constructor Details

    • EntityManagerFactoryDependsOnPostProcessor

      public EntityManagerFactoryDependsOnPostProcessor(String... dependsOn)
      Creates a new EntityManagerFactoryDependsOnPostProcessor that will set up dependencies upon beans with the given names.
      Parameters:
      dependsOn - names of the beans to depend upon
    • EntityManagerFactoryDependsOnPostProcessor

      public EntityManagerFactoryDependsOnPostProcessor(Class<?>... dependsOn)
      Creates a new EntityManagerFactoryDependsOnPostProcessor that will set up dependencies upon beans with the given types.
      Parameters:
      dependsOn - types of the beans to depend upon