类 LoadTimeWeaverAwareProcessor
java.lang.Object
cn.taketoday.context.weaving.LoadTimeWeaverAwareProcessor
public class LoadTimeWeaverAwareProcessor
extends Object
implements InitializationBeanPostProcessor, 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.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器构造器说明Create a newLoadTimeWeaverAwareProcessorthat will auto-retrieve theLoadTimeWeaverfrom the containingBeanFactory, expecting a bean named"loadTimeWeaver".LoadTimeWeaverAwareProcessor(BeanFactory beanFactory) Create a newLoadTimeWeaverAwareProcessor.LoadTimeWeaverAwareProcessor(LoadTimeWeaver loadTimeWeaver) Create a newLoadTimeWeaverAwareProcessorfor the givenLoadTimeWeaver. -
方法概要
修饰符和类型方法说明postProcessAfterInitialization(Object bean, String name) postProcessBeforeInitialization(Object bean, String beanName) voidsetBeanFactory(BeanFactory beanFactory)
-
构造器详细资料
-
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".- 参数:
loadTimeWeaver- the specificLoadTimeWeaverthat is to be used
-
LoadTimeWeaverAwareProcessor
Create a newLoadTimeWeaverAwareProcessor.The
LoadTimeWeaverwill be auto-retrieved from the givenBeanFactory, expecting a bean named"loadTimeWeaver".- 参数:
beanFactory- the BeanFactory to retrieve the LoadTimeWeaver from
-
-
方法详细资料
-
setBeanFactory
- 指定者:
setBeanFactory在接口中BeanFactoryAware
-
postProcessBeforeInitialization
-
postProcessAfterInitialization
-