org.synyx.hades.domain.auditing.support
Class AuditingBeanFactoryPostProcessor

java.lang.Object
  extended by org.synyx.hades.domain.auditing.support.AuditingBeanFactoryPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor

public class AuditingBeanFactoryPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.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(org.springframework.beans.factory.config.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(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.