类 AspectJWeavingEnabler
java.lang.Object
cn.taketoday.context.weaving.AspectJWeavingEnabler
- 所有已实现的接口:
Aware,BeanClassLoaderAware,BeanFactoryPostProcessor,LoadTimeWeaverAware,cn.taketoday.core.Ordered
public class AspectJWeavingEnabler
extends Object
implements BeanFactoryPostProcessor, BeanClassLoaderAware, LoadTimeWeaverAware, cn.taketoday.core.Ordered
Post-processor that registers AspectJ's
ClassPreProcessorAgentAdapter
with the Framework application context's default
LoadTimeWeaver.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Ramnivas Laddad
-
字段概要
字段从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidenableAspectJWeaving(LoadTimeWeaver weaverToUse, ClassLoader beanClassLoader) Enable AspectJ weaving with the givenLoadTimeWeaver.intgetOrder()voidpostProcessBeanFactory(ConfigurableBeanFactory beanFactory) voidsetBeanClassLoader(ClassLoader classLoader) voidsetLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver) Set theLoadTimeWeaverof this object's containingApplicationContext.
-
字段详细资料
-
ASPECTJ_AOP_XML_RESOURCE
Theaop.xmlresource location.- 另请参阅:
-
-
构造器详细资料
-
AspectJWeavingEnabler
public AspectJWeavingEnabler()
-
-
方法详细资料
-
setBeanClassLoader
- 指定者:
setBeanClassLoader在接口中BeanClassLoaderAware
-
setLoadTimeWeaver
从接口复制的说明:LoadTimeWeaverAwareSet theLoadTimeWeaverof this object's containingApplicationContext.Invoked after the population of normal bean properties but before an initialization callback like
InitializingBean'safterPropertiesSet()or a custom init-method. Invoked afterApplicationContextAware'ssetApplicationContext(..).NOTE: This method will only be called if there actually is a
LoadTimeWeaveravailable in the application context. If there is none, the method will simply not get invoked, assuming that the implementing object is able to activate its weaving dependency accordingly.- 指定者:
setLoadTimeWeaver在接口中LoadTimeWeaverAware- 参数:
loadTimeWeaver- theLoadTimeWeaverinstance (nevernull)- 另请参阅:
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中cn.taketoday.core.Ordered
-
postProcessBeanFactory
- 指定者:
postProcessBeanFactory在接口中BeanFactoryPostProcessor- 抛出:
BeansException
-
enableAspectJWeaving
public static void enableAspectJWeaving(@Nullable LoadTimeWeaver weaverToUse, @Nullable ClassLoader beanClassLoader) Enable AspectJ weaving with the givenLoadTimeWeaver.- 参数:
weaverToUse- the LoadTimeWeaver to apply to (ornullfor a default weaver)beanClassLoader- the class loader to create a default weaver for (if necessary)
-