Class EntityManagerBeanDefinitionRegistrarPostProcessor
java.lang.Object
org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
public class EntityManagerBeanDefinitionRegistrarPostProcessor
extends Object
implements BeanFactoryPostProcessor, Ordered
BeanFactoryPostProcessor
to register a SharedEntityManagerCreator
for every
EntityManagerFactory
bean definition found in the application context to enable autowiring
EntityManager
instances into constructor arguments. Adds the EntityManagerFactory
bean name as
qualifier to the EntityManager
BeanDefinition
to enable explicit references in case of multiple
EntityManagerFactory
instances.- Author:
- Oliver Gierke, RĂ©da Housni Alaoui, Mark Paluch, Donghun Shin
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
EntityManagerBeanDefinitionRegistrarPostProcessor
public EntityManagerBeanDefinitionRegistrarPostProcessor()
-
-
Method Details
-
getOrder
public int getOrder() -
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException - Specified by:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
- Throws:
BeansException
-