public abstract class AbstractAspectJAdvisorFactory extends Object implements AspectJAdvisorFactory
This class handles annotation parsing and validation functionality. It does not actually generate Spring AOP Advisors, which is deferred to subclasses.
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
AbstractAspectJAdvisorFactory.AspectJAnnotation<A extends Annotation>
Class modelling an AspectJ annotation, exposing its type enumeration and
pointcut String.
|
protected static class |
AbstractAspectJAdvisorFactory.AspectJAnnotationType
Enum for AspectJ annotation types.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Log |
logger
Logger available to subclasses
|
protected org.springframework.core.ParameterNameDiscoverer |
parameterNameDiscoverer |
| 构造器和说明 |
|---|
AbstractAspectJAdvisorFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static AbstractAspectJAdvisorFactory.AspectJAnnotation<?> |
findAspectJAnnotationOnMethod(Method method)
Find and return the first AspectJ annotation on the given method
(there should only be one anyway...).
|
boolean |
isAspect(Class<?> clazz)
传入正在创建的Bean对象的class中是不是有@Aspect切面的注解信息
|
void |
validate(Class<?> aspectClass)
Is the given class a valid AspectJ aspect class?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdvice, getAdvisor, getAdvisorsprotected final Log logger
protected final org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer
public boolean isAspect(Class<?> clazz)
isAspect 在接口中 AspectJAdvisorFactoryclazz - the supposed annotation-style AspectJ classpublic void validate(Class<?> aspectClass) throws AopConfigException
AspectJAdvisorFactoryvalidate 在接口中 AspectJAdvisorFactoryaspectClass - 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)@Nullable protected static AbstractAspectJAdvisorFactory.AspectJAnnotation<?> findAspectJAnnotationOnMethod(Method method)