org.springframework.aop.aspectj.annotation
Class ReflectiveAspectJAdvisorFactory
java.lang.Object
org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory
org.springframework.aop.aspectj.annotation.ReflectiveAspectJAdvisorFactory
- All Implemented Interfaces:
- AspectJAdvisorFactory
public class ReflectiveAspectJAdvisorFactory
- extends AbstractAspectJAdvisorFactory
Factory that can create Spring AOP Advisors given AspectJ classes from classes honouring
the AspectJ 5 annotation syntax, using reflection to invoke advice methods.
- Since:
- 2.0
- Author:
- Rod Johnson, Adrian Colyer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectiveAspectJAdvisorFactory
public ReflectiveAspectJAdvisorFactory()
getAdvisors
public List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory maaif)
- Create Spring Advisors for all At AspectJ methods on the given aspect instance.
- Parameters:
maaif
- prevents eager instantiation. Should cache.
- Returns:
- a list of Advisors for this class
getAdvisor
public Advisor getAdvisor(Method candidateAspectJAdviceMethod,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
- Description copied from interface:
AspectJAdvisorFactory
- TODO: javadoc
- Returns:
null
if the method is not an AspectJ advice method
getAdvice
public Advice getAdvice(Method candidateAspectJAdviceMethod,
AspectJExpressionPointcut ajexp,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
- Return
null
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 Springt advice in its own right.
- Returns:
null
if the method is not an AspectJ advice method
Copyright © 2002-2006 The Spring Framework.