Spring Data Jpa

org.springframework.data.jpa.domain.support
Class AuditingBeanFactoryPostProcessor

java.lang.Object
  extended by org.springframework.data.jpa.domain.support.AuditingBeanFactoryPostProcessor
All Implemented Interfaces:
BeanFactoryPostProcessor

public class AuditingBeanFactoryPostProcessor
extends Object
implements BeanFactoryPostProcessor

BeanFactoryPostProcessor to add a depends-on from a LocalEntityManagerFactoryBean or LocalContainerEntityManagerFactoryBean towards the aspect bean configured via <context:spring-configured>. This has to be done to ensure the aspect is up and running before the EntityManagerFactory gets created as this already instantiates entity listeners and we need to get injection into Configurable to work in them.

Author:
Oliver Gierke

Constructor Summary
AuditingBeanFactoryPostProcessor()
           
 
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

AuditingBeanFactoryPostProcessor

public AuditingBeanFactoryPostProcessor()
Method Detail

postProcessBeanFactory

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

Spring Data Jpa

Copyright © 2011-2012-2012 SpringSource. All Rights Reserved.