public abstract class AbstractAspectJAdvisorFactory extends java.lang.Object implements AspectJAdvisorFactory
This class handles annotation parsing and validation functionality. It does not actually generate Spring AOP Advisors, which is deferred to subclasses.
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAspectJAdvisorFactory.AspectJAnnotation<A extends java.lang.annotation.Annotation>
Class modelling an AspectJ annotation, exposing its type enumeration and
pointcut String.
|
protected static class |
AbstractAspectJAdvisorFactory.AspectJAnnotationType
Enum for AspectJ annotation types.
|
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
Logger available to subclasses
|
protected ParameterNameDiscoverer |
parameterNameDiscoverer |
Constructor and Description |
---|
AbstractAspectJAdvisorFactory() |
Modifier and Type | Method and Description |
---|---|
protected static AbstractAspectJAdvisorFactory.AspectJAnnotation<?> |
findAspectJAnnotationOnMethod(java.lang.reflect.Method method)
Find and return the first AspectJ annotation on the given method
(there should only be one anyway...).
|
boolean |
isAspect(java.lang.Class<?> clazz)
We consider something to be an AspectJ aspect suitable for use by the Spring AOP system
if it has the @Aspect annotation, and was not compiled by ajc.
|
void |
validate(java.lang.Class<?> aspectClass)
Is the given class a valid AspectJ aspect class?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdvice, getAdvisor, getAdvisors
protected final Log logger
protected final ParameterNameDiscoverer parameterNameDiscoverer
public boolean isAspect(java.lang.Class<?> clazz)
isAspect
in interface AspectJAdvisorFactory
clazz
- the supposed annotation-style AspectJ classpublic void validate(java.lang.Class<?> aspectClass) throws AopConfigException
AspectJAdvisorFactory
validate
in interface AspectJAdvisorFactory
aspectClass
- the supposed AspectJ annotation-style class to validateAopConfigException
- 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 not be legal, depending on the context)protected static AbstractAspectJAdvisorFactory.AspectJAnnotation<?> findAspectJAnnotationOnMethod(java.lang.reflect.Method method)