Class LoadTimeWeaverAwareProcessor
java.lang.Object
org.springframework.context.weaving.LoadTimeWeaverAwareProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor
public class LoadTimeWeaverAwareProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware
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.
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLoadTimeWeaverAwareProcessorthat will auto-retrieve theLoadTimeWeaverfrom the containingBeanFactory, expecting a bean named"loadTimeWeaver".LoadTimeWeaverAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory) Create a newLoadTimeWeaverAwareProcessor.LoadTimeWeaverAwareProcessor(@Nullable LoadTimeWeaver loadTimeWeaver) Create a newLoadTimeWeaverAwareProcessorfor the givenLoadTimeWeaver. -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization(Object bean, String name) postProcessBeforeInitialization(Object bean, String beanName) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Constructor Details
-
LoadTimeWeaverAwareProcessor
public LoadTimeWeaverAwareProcessor()Create a newLoadTimeWeaverAwareProcessorthat will auto-retrieve theLoadTimeWeaverfrom the containingBeanFactory, expecting a bean named"loadTimeWeaver". -
LoadTimeWeaverAwareProcessor
Create a newLoadTimeWeaverAwareProcessorfor the givenLoadTimeWeaver.If the given
loadTimeWeaverisnull, then aLoadTimeWeaverwill be auto-retrieved from the containingBeanFactory, expecting a bean named"loadTimeWeaver".- Parameters:
loadTimeWeaver- the specificLoadTimeWeaverthat is to be used
-
LoadTimeWeaverAwareProcessor
public LoadTimeWeaverAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory) Create a newLoadTimeWeaverAwareProcessor.The
LoadTimeWeaverwill be auto-retrieved from the givenBeanFactory, expecting a bean named"loadTimeWeaver".- Parameters:
beanFactory- the BeanFactory to retrieve the LoadTimeWeaver from
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-
postProcessBeforeInitialization
-
postProcessAfterInitialization
-