|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AspectJAdvisorFactory
Interface for factories that can create Spring AOP Advisors from classes annotated with AspectJ annotation syntax.
Method Summary | |
---|---|
Advice |
getAdvice(Method candidateAspectJAdviceMethod,
AspectJExpressionPointcut pointcut,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
TODO: javadoc |
Advisor |
getAdvisor(Method candidateAspectJAdviceMethod,
MetadataAwareAspectInstanceFactory aif,
int declarationOrderInAspect,
String aspectName)
TODO: javadoc |
List<Advisor> |
getAdvisors(MetadataAwareAspectInstanceFactory aif)
Create Spring Advisors for all At AspectJ methods on the given aspect instance. |
boolean |
isAspect(Class<?> clazz)
Return whether or not the given class is an aspect, as reported by AspectJ's AJTypeSystem. |
void |
validate(Class<?> aspectClass)
Is the given class a valid aspect class? |
Method Detail |
---|
boolean isAspect(Class<?> clazz)
clazz
- supposed annotation-style AspectJ class
void validate(Class<?> aspectClass) throws AopConfigException, NotAnAtAspectException
aspectClass
- supposed AspectJ annotation-style class
to validate
AopConfigException
- if the class is an invalid aspect
(which can never be legal)
NotAnAtAspectException
- if the class is not an aspect at all
(which may or may be legal, depending on the context)List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory aif)
aif
- prevents eager instantiation. Should cache.
Advisor getAdvisor(Method candidateAspectJAdviceMethod, MetadataAwareAspectInstanceFactory aif, int declarationOrderInAspect, String aspectName)
null
if the method is not an AspectJ advice methodAdvice getAdvice(Method candidateAspectJAdviceMethod, AspectJExpressionPointcut pointcut, MetadataAwareAspectInstanceFactory aif, int declarationOrderInAspect, String aspectName)
null
if the method is not an AspectJ advice method
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |