类 ReflectiveAspectJAdvisorFactory
java.lang.Object
cn.taketoday.aop.aspectj.annotation.AbstractAspectJAdvisorFactory
cn.taketoday.aop.aspectj.annotation.ReflectiveAspectJAdvisorFactory
- 所有已实现的接口:
AspectJAdvisorFactory,Serializable
public class ReflectiveAspectJAdvisorFactory
extends AbstractAspectJAdvisorFactory
implements Serializable
Factory that can create Framework AOP Advisors given AspectJ classes from
classes honoring AspectJ's annotation syntax, using reflection to invoke the
corresponding advice methods.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Adrian Colyer, Juergen Hoeller, Ramnivas Laddad, Phillip Webb, Sam Brannen
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明protected static classSynthetic advisor that instantiates the aspect.从类继承的嵌套类/接口 cn.taketoday.aop.aspectj.annotation.AbstractAspectJAdvisorFactory
AbstractAspectJAdvisorFactory.AspectJAnnotation<A extends Annotation>, AbstractAspectJAdvisorFactory.AspectJAnnotationType -
字段概要
从类继承的字段 cn.taketoday.aop.aspectj.annotation.AbstractAspectJAdvisorFactory
logger, parameterNameDiscoverer -
构造器概要
构造器构造器说明Create a newReflectiveAspectJAdvisorFactory.ReflectiveAspectJAdvisorFactory(BeanFactory beanFactory) Create a newReflectiveAspectJAdvisorFactory, propagating the givenBeanFactoryto the createdAspectJExpressionPointcutinstances, for bean pointcut handling as well as consistentClassLoaderresolution. -
方法概要
修饰符和类型方法说明getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectFactory, int declarationOrder, String aspectName) Build a Framework AOP Advice for the given AspectJ advice method.getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrderInAspect, String aspectName) Build a Framework AOP Advisor for the given AspectJ advice method.getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory) Build Framework AOP Advisors for all annotated At-AspectJ methods on the specified aspect instance.从类继承的方法 cn.taketoday.aop.aspectj.annotation.AbstractAspectJAdvisorFactory
findAspectJAnnotationOnMethod, isAspect, validate
-
构造器详细资料
-
ReflectiveAspectJAdvisorFactory
public ReflectiveAspectJAdvisorFactory()Create a newReflectiveAspectJAdvisorFactory. -
ReflectiveAspectJAdvisorFactory
Create a newReflectiveAspectJAdvisorFactory, propagating the givenBeanFactoryto the createdAspectJExpressionPointcutinstances, for bean pointcut handling as well as consistentClassLoaderresolution.- 参数:
beanFactory- the BeanFactory to propagate (may benull}- 另请参阅:
-
-
方法详细资料
-
getAdvisors
从接口复制的说明:AspectJAdvisorFactoryBuild Framework AOP Advisors for all annotated At-AspectJ methods on the specified aspect instance.- 指定者:
getAdvisors在接口中AspectJAdvisorFactory- 参数:
aspectInstanceFactory- the aspect instance factory (not the aspect instance itself in order to avoid eager instantiation)- 返回:
- a list of advisors for this class
-
getAdvisor
@Nullable public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrderInAspect, String aspectName) 从接口复制的说明:AspectJAdvisorFactoryBuild a Framework AOP Advisor for the given AspectJ advice method.- 指定者:
getAdvisor在接口中AspectJAdvisorFactory- 参数:
candidateAdviceMethod- the candidate advice methodaspectInstanceFactory- the aspect instance factorydeclarationOrderInAspect- the declaration order within the aspectaspectName- the name of the aspect- 返回:
nullif the method is not an AspectJ advice method or if it is a pointcut that will be used by other advice but will not create a Framework advice in its own right
-
getAdvice
@Nullable public Advice getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectFactory, int declarationOrder, String aspectName) 从接口复制的说明:AspectJAdvisorFactoryBuild a Framework AOP Advice for the given AspectJ advice method.- 指定者:
getAdvice在接口中AspectJAdvisorFactory- 参数:
candidateAdviceMethod- the candidate advice methodexpressionPointcut- the AspectJ expression pointcutaspectFactory- the aspect instance factorydeclarationOrder- the declaration order within the aspectaspectName- the name of the aspect- 返回:
nullif the method is not an AspectJ advice method or if it is a pointcut that will be used by other advice but will not create a Framework advice in its own right- 另请参阅:
-