Spring Data JPA

org.springframework.data.jpa.repository.support
Class EntityManagerBeanDefinitionRegistrarPostProcessor

java.lang.Object
  extended by 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

Constructor Summary
EntityManagerBeanDefinitionRegistrarPostProcessor()
           
 
Method Summary
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityManagerBeanDefinitionRegistrarPostProcessor

public EntityManagerBeanDefinitionRegistrarPostProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
                            throws BeansException
Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Throws:
BeansException

Spring Data JPA

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.