org.springframework.test.jpa
Class AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor

java.lang.Object
  extended by org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
      extended by org.springframework.test.jpa.AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor
All Implemented Interfaces:
BeanPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor
Enclosing class:
AbstractJpaTests

private static class AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor
extends InstantiationAwareBeanPostProcessorAdapter


Field Summary
private  LoadTimeWeaver ltw
           
 
Constructor Summary
AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor(LoadTimeWeaver ltw)
           
 
Method Summary
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
          Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method).
 
Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ltw

private final LoadTimeWeaver ltw
Constructor Detail

AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor

public AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor(LoadTimeWeaver ltw)
Method Detail

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws BeansException
Description copied from interface: BeanPostProcessor
Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original.

Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
Overrides:
postProcessBeforeInitialization in class InstantiationAwareBeanPostProcessorAdapter
Parameters:
bean - the new bean instance
beanName - the name of the bean
Returns:
the bean instance to use, either the original or a wrapped one; if null, no subsequent BeanPostProcessors will be invoked
Throws:
BeansException - in case of errors
See Also:
InitializingBean.afterPropertiesSet()