Class EntityManagerBeanDefinitionRegistrarPostProcessor
java.lang.Object
org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor, Ordered
@Deprecated(since="4.0")
public class EntityManagerBeanDefinitionRegistrarPostProcessor
extends Object
implements BeanFactoryPostProcessor, Ordered
Deprecated.
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 Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.EntityManagerBeanDefinitionRegistrarPostProcessor(BiPredicate<String, BeanDefinition> decoratorPredicate) Deprecated.Creates a newEntityManagerBeanDefinitionRegistrarPostProcessorallowing to filter whichEntityManagerFactorybeans should be decorated with aSharedEntityManagerCreator. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()Deprecated.voidpostProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) Deprecated.
-
Constructor Details
-
EntityManagerBeanDefinitionRegistrarPostProcessor
public EntityManagerBeanDefinitionRegistrarPostProcessor()Deprecated. -
EntityManagerBeanDefinitionRegistrarPostProcessor
public EntityManagerBeanDefinitionRegistrarPostProcessor(BiPredicate<String, BeanDefinition> decoratorPredicate) Deprecated.Creates a newEntityManagerBeanDefinitionRegistrarPostProcessorallowing to filter whichEntityManagerFactorybeans should be decorated with aSharedEntityManagerCreator.- Parameters:
decoratorPredicate- the predicate to determine whether a given namedBeanDefinitionshould be decorated with aSharedEntityManagerCreator.- Since:
- 4.0
-
-
Method Details
-
getOrder
-
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException Deprecated.- Specified by:
postProcessBeanFactoryin interfaceBeanFactoryPostProcessor- Throws:
BeansException
-
AbstractEntityManagerFactoryBeanthat provides a sharedEntityManageror usingSharedEntityManagerCreatordirectly in your configuration.