当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
ReflectiveAspectJAdvisorFactory (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
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 honoring the AspectJ 5 annotation syntax, using reflection to
invoke the corresponding advice methods.
- Since:
- 2.0
- Author:
- Rod Johnson, Adrian Colyer, Juergen Hoeller
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)
- Description copied from interface:
AspectJAdvisorFactory
- Build Spring AOP Advisors for all annotated At-AspectJ methods
on the specified aspect instance.
- Parameters:
maaif
- the aspect instance factory (not the aspect instance itself
in order to avoid eager instantiation)
- Returns:
- a list of advisors for this class
getAdvisor
public Advisor getAdvisor(Method candidateAdviceMethod,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
- Description copied from interface:
AspectJAdvisorFactory
- Build a Spring AOP Advisor for the given AspectJ advice method.
- Parameters:
candidateAdviceMethod
- the candidate advice methodaif
- the aspect instance factorydeclarationOrderInAspect
- the declaration order within the aspectaspectName
- the name of the aspect
- Returns:
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 Spring advice in its own right
getAdvice
public Advice getAdvice(Method candidateAdviceMethod,
AspectJExpressionPointcut ajexp,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
- Description copied from interface:
AspectJAdvisorFactory
- Build a Spring AOP Advice for the given AspectJ advice method.
- Parameters:
candidateAdviceMethod
- the candidate advice methodajexp
- the corresponding AspectJ expression pointcutaif
- the aspect instance factorydeclarationOrderInAspect
- the declaration order within the aspectaspectName
- the name of the aspect
- Returns:
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 Spring advice in its own right- See Also:
AspectJAroundAdvice
,
AspectJMethodBeforeAdvice
,
AspectJAfterAdvice
,
AspectJAfterReturningAdvice
,
AspectJAfterThrowingAdvice
Copyright © 2002-2007 The Spring Framework.