public class ReflectiveAspectJAdvisorFactory extends AbstractAspectJAdvisorFactory implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ReflectiveAspectJAdvisorFactory.SyntheticInstantiationAdvisor
Synthetic advisor that instantiates the aspect.
|
AbstractAspectJAdvisorFactory.AspectJAnnotation<A extends java.lang.annotation.Annotation>, AbstractAspectJAdvisorFactory.AspectJAnnotationTypelogger, parameterNameDiscoverer| Constructor and Description |
|---|
ReflectiveAspectJAdvisorFactory()
Create a new
ReflectiveAspectJAdvisorFactory. |
ReflectiveAspectJAdvisorFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Create a new
ReflectiveAspectJAdvisorFactory, propagating the given
BeanFactory to the created AspectJExpressionPointcut instances,
for bean pointcut handling as well as consistent ClassLoader resolution. |
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice(java.lang.reflect.Method candidateAdviceMethod,
AspectJExpressionPointcut expressionPointcut,
MetadataAwareAspectInstanceFactory aspectInstanceFactory,
int declarationOrder,
java.lang.String aspectName)
Build a Spring AOP Advice for the given AspectJ advice method.
|
Advisor |
getAdvisor(java.lang.reflect.Method candidateAdviceMethod,
MetadataAwareAspectInstanceFactory aspectInstanceFactory,
int declarationOrderInAspect,
java.lang.String aspectName)
Build a Spring AOP Advisor for the given AspectJ advice method.
|
java.util.List<Advisor> |
getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory)
Build Spring AOP Advisors for all annotated At-AspectJ methods
on the specified aspect instance.
|
findAspectJAnnotationOnMethod, isAspect, validatepublic ReflectiveAspectJAdvisorFactory()
ReflectiveAspectJAdvisorFactory.public ReflectiveAspectJAdvisorFactory(org.springframework.beans.factory.BeanFactory beanFactory)
ReflectiveAspectJAdvisorFactory, propagating the given
BeanFactory to the created AspectJExpressionPointcut instances,
for bean pointcut handling as well as consistent ClassLoader resolution.beanFactory - the BeanFactory to propagate (may be null}AspectJExpressionPointcut.setBeanFactory(org.springframework.beans.factory.BeanFactory),
ConfigurableBeanFactory.getBeanClassLoader()public java.util.List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory)
AspectJAdvisorFactorygetAdvisors in interface AspectJAdvisorFactoryaspectInstanceFactory - the aspect instance factory
(not the aspect instance itself in order to avoid eager instantiation)public Advisor getAdvisor(java.lang.reflect.Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrderInAspect, java.lang.String aspectName)
AspectJAdvisorFactorygetAdvisor in interface 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(java.lang.reflect.Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, java.lang.String aspectName)
AspectJAdvisorFactorygetAdvice in interface 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