org.springframework.beans.factory.config.BeanPostProcessor
implementation that passes the context's default LoadTimeWeaver
to beans that implement the LoadTimeWeaverAware interface.
Application contexts
will automatically register this with their underlying bean factory,
provided that a default LoadTimeWeaver is actually available.
Applications should not use this class directly.
LoadTimeWeaverAware, org.springframework.context.ConfigurableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME
| Modifier and Type | Field and Description |
|---|---|
| private BeanFactory | |
| private LoadTimeWeaver |
| Access | Constructor and Description |
|---|---|
| public | LoadTimeWeaverAwareProcessor()
Create a new |
| public | LoadTimeWeaverAwareProcessor(LoadTimeWeaver
the specific loadTimeWeaver)LoadTimeWeaver that is to be usedCreate a new |
| public | LoadTimeWeaverAwareProcessor(BeanFactory
the BeanFactory to retrieve the LoadTimeWeaver from beanFactory)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public Object | postProcessAfterInitialization(Object
the new bean instance bean, String the name of the bean name)Overrides default org. Apply this |
| public Object | postProcessBeforeInitialization(Object
the new bean instance bean, String the name of the bean beanName)Overrides default org. Apply this |
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. Callback that supplies the owning factory to a bean instance. |
| beanFactory | back to summary |
|---|---|
| private BeanFactory beanFactory
| |
| loadTimeWeaver | back to summary |
|---|---|
| private LoadTimeWeaver loadTimeWeaver
| |
| LoadTimeWeaverAwareProcessor | back to summary |
|---|---|
| public LoadTimeWeaverAwareProcessor() Create a new | |
| LoadTimeWeaverAwareProcessor | back to summary |
|---|---|
| public LoadTimeWeaverAwareProcessor(LoadTimeWeaver loadTimeWeaver) Create a new If the given
| |
| LoadTimeWeaverAwareProcessor | back to summary |
|---|---|
| public LoadTimeWeaverAwareProcessor(BeanFactory beanFactory) Create a new The
| |
| postProcessAfterInitialization | back to summary |
|---|---|
| public Object postProcessAfterInitialization(Object bean, String name) Overrides default org. Doc from org. Apply this In case of a FactoryBean, this callback will be invoked for both the FactoryBean
instance and the objects created by the FactoryBean (as of Spring 2.0). The
post-processor can decide whether to apply to either the FactoryBean or created
objects or both through corresponding This callback will also be invoked after a short-circuiting triggered by a
The default implementation returns the given | |
| postProcessBeforeInitialization | back to summary |
|---|---|
| public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException Overrides default org. Doc from org. Apply this The default implementation returns the given
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Doc from org. Callback that supplies the owning factory to a bean instance. Invoked after the population of normal bean properties
but before an initialization callback such as
| |