public class ReflectiveAspectJAdvisorFactory extends AbstractAspectJAdvisorFactory
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ReflectiveAspectJAdvisorFactory.SyntheticInstantiationAdvisor
Synthetic advisor that instantiates the aspect.
|
AbstractAspectJAdvisorFactory.AspectJAnnotation<A extends Annotation>, AbstractAspectJAdvisorFactory.AspectJAnnotationTypelogger, parameterNameDiscoverer| Constructor and Description |
|---|
ReflectiveAspectJAdvisorFactory() |
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice(Method candidateAdviceMethod,
AspectJExpressionPointcut expressionPointcut,
MetadataAwareAspectInstanceFactory aspectInstanceFactory,
int declarationOrder,
String aspectName)
Build a Spring AOP Advice for the given AspectJ advice method.
|
Advisor |
getAdvisor(Method candidateAdviceMethod,
MetadataAwareAspectInstanceFactory aspectInstanceFactory,
int declarationOrderInAspect,
String aspectName)
Build a Spring AOP Advisor for the given AspectJ advice method.
|
List<Advisor> |
getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory)
Build Spring AOP Advisors for all annotated At-AspectJ methods
on the specified aspect instance.
|
createPointcutExpression, findAspectJAnnotationOnMethod, isAspect, validatepublic List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory)
AspectJAdvisorFactoryaspectInstanceFactory - the aspect instance factory
(not the aspect instance itself in order to avoid eager instantiation)public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrderInAspect, String aspectName)
AspectJAdvisorFactorycandidateAdviceMethod - the candidate advice methodaspectInstanceFactory - the aspect instance factorydeclarationOrderInAspect - the declaration order within the aspectaspectName - the name of the aspectnull if 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 Spring advice in its own rightpublic Advice getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName)
AspectJAdvisorFactorycandidateAdviceMethod - the candidate advice methodexpressionPointcut - the AspectJ expression pointcutaspectInstanceFactory - the aspect instance factorydeclarationOrder - the declaration order within the aspectaspectName - the name of the aspectnull if 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 Spring advice in its own rightAspectJAroundAdvice,
AspectJMethodBeforeAdvice,
AspectJAfterAdvice,
AspectJAfterReturningAdvice,
AspectJAfterThrowingAdvice