| org.springframework.aop.aspectj.annotation.AspectJAdvisorFactory
All known Subclasses: org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory,
AspectJAdvisorFactory | public interface AspectJAdvisorFactory (Code) | | Interface for factories that can create Spring AOP Advisors from classes
annotated with AspectJ annotation syntax.
author: Rod Johnson author: Juergen Hoeller since: 2.0 See Also: AspectMetadata See Also: org.aspectj.lang.reflect.AjTypeSystem |
getAdvisor | Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aif, int declarationOrderInAspect, String aspectName)(Code) | | Build a Spring AOP Advisor for the given AspectJ advice method.
Parameters: candidateAdviceMethod - the candidate advice method Parameters: aif - the aspect instance factory Parameters: declarationOrderInAspect - the declaration order within the aspect Parameters: aspectName - the name of the aspect null if the method is not an AspectJ advice methodor if it is a pointcut that will be used by other advice but will notcreate a Spring advice in its own right |
getAdvisors | List<Advisor> getAdvisors(MetadataAwareAspectInstanceFactory aif)(Code) | | Build Spring AOP Advisors for all annotated At-AspectJ methods
on the specified aspect instance.
Parameters: aif - the aspect instance factory (not the aspect instance itselfin order to avoid eager instantiation) a list of advisors for this class |
isAspect | boolean isAspect(Class> clazz)(Code) | | Determine whether or not the given class is an aspect, as reported
by AspectJ's
org.aspectj.lang.reflect.AjTypeSystem .
Will simply return false if the supposed aspect is
invalid (such as an extension of a concrete aspect class).
Will return true for some aspects that Spring AOP cannot process,
such as those with unsupported instantiation models.
Use the
AspectJAdvisorFactory.validate method to handle these cases if necessary.
Parameters: clazz - the supposed annotation-style AspectJ class whether or not this class is recognized by AspectJ as an aspect class |
validate | void validate(Class> aspectClass) throws AopConfigException(Code) | | Is the given class a valid AspectJ aspect class?
Parameters: aspectClass - the supposed AspectJ annotation-style class to validate throws: AopConfigException - if the class is an invalid aspect(which can never be legal) throws: NotAnAtAspectException - if the class is not an aspect at all(which may or may not be legal, depending on the context) |
|
|