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 ajexp,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
Build a Spring AOP Advice for the given AspectJ advice method.
|
Advisor |
getAdvisor(Method candidateAdviceMethod,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
Build a Spring AOP Advisor for the given AspectJ advice method.
|
List<Advisor> |
getAdvisors(MetadataAwareAspectInstanceFactory maaif)
Build Spring AOP Advisors for all annotated At-AspectJ methods
on the specified aspect instance.
|
createPointcutExpression, findAspectJAnnotationOnMethod, isAspect, validatepublic List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory maaif)
AspectJAdvisorFactorymaaif - the aspect instance factory (not the aspect instance itself
in order to avoid eager instantiation)public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aif, int declarationOrderInAspect, String aspectName)
AspectJAdvisorFactorycandidateAdviceMethod - the candidate advice methodaif - 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 ajexp, MetadataAwareAspectInstanceFactory aif, int declarationOrderInAspect, String aspectName)
AspectJAdvisorFactorycandidateAdviceMethod - the candidate advice methodajexp - the corresponding AspectJ expression pointcutaif - 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 rightAspectJAroundAdvice,
AspectJMethodBeforeAdvice,
AspectJAfterAdvice,
AspectJAfterReturningAdvice,
AspectJAfterThrowingAdvice