private static class AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter
Modifier and Type | Field and Description |
---|---|
private LoadTimeWeaver |
ltw |
Constructor and Description |
---|
AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor(LoadTimeWeaver ltw) |
Modifier and Type | Method and Description |
---|---|
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). |
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType
private final LoadTimeWeaver ltw
public AbstractJpaTests.LoadTimeWeaverInjectingBeanPostProcessor(LoadTimeWeaver ltw)
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName) throws BeansException
BeanPostProcessor
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.postProcessBeforeInitialization
in interface BeanPostProcessor
postProcessBeforeInitialization
in class InstantiationAwareBeanPostProcessorAdapter
bean
- the new bean instancebeanName
- the name of the beannull
, no subsequent BeanPostProcessors will be invokedBeansException
- in case of errorsInitializingBean.afterPropertiesSet()