org.springframework.data.jpa.repository.support
Class EntityManagerBeanDefinitionRegistrarPostProcessor
java.lang.Object
org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor
- All Implemented Interfaces:
- BeanFactoryPostProcessor
public class EntityManagerBeanDefinitionRegistrarPostProcessor
- extends Object
- implements BeanFactoryPostProcessor
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityManagerBeanDefinitionRegistrarPostProcessor
public EntityManagerBeanDefinitionRegistrarPostProcessor()
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
throws BeansException
- Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
- Throws:
BeansException
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.