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
Class modeling an AspectJ annotation, exposing its type enumeration and pointcut String. |
| private static class | AbstractAspectJAdvisorFactory.AspectJAnnotationParameterNameDiscoverer
ParameterNameDiscoverer implementation that analyzes the arg names specified at the AspectJ annotation level. |
| protected static enum | AbstractAspectJAdvisorFactory.AspectJAnnotationType
Enum for AspectJ annotation types. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Class | |
| protected final Log | logger
Logger available to subclasses. |
| protected final ParameterNameDiscoverer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | compiledByAjc(Class<?> clazz)
We need to detect this as "code-style" AspectJ aspects should not be interpreted by Spring AOP. |
| private static AbstractAspectJAdvisorFactory. | |
| protected static AbstractAspectJAdvisorFactory. | findAspectJAnnotationOnMethod(Method method)
Find and return the first AspectJ annotation on the given method (there should only be one anyway...). |
| private boolean | |
| public boolean | isAspect(Class<?>
the supposed annotation-style AspectJ class clazz)Implements org. |
| public void | validate(Class<?>
the supposed AspectJ annotation-style class to validate aspectClass)Implements org. |
| AJC_MAGIC | back to summary |
|---|---|
| private static final String AJC_MAGIC | |
| ASPECTJ_ANNOTATION_CLASSES | back to summary |
|---|---|
| private static final Class<?>[] ASPECTJ_ANNOTATION_CLASSES | |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| parameterNameDiscoverer | back to summary |
|---|---|
| protected final ParameterNameDiscoverer parameterNameDiscoverer | |
| AbstractAspectJAdvisorFactory | back to summary |
|---|---|
| public AbstractAspectJAdvisorFactory() | |
| compiledByAjc | back to summary |
|---|---|
| pack-priv static boolean compiledByAjc(Class<?> clazz) We need to detect this as "code-style" AspectJ aspects should not be interpreted by Spring AOP. | |
| findAnnotation | back to summary |
|---|---|
private static AbstractAspectJAdvisorFactory.
| |
| findAspectJAnnotationOnMethod | back to summary |
|---|---|
| protected static AbstractAspectJAdvisorFactory. Find and return the first AspectJ annotation on the given method (there should only be one anyway...).
| |
| hasAspectAnnotation | back to summary |
|---|---|
| private boolean hasAspectAnnotation(Class<?> clazz) | |
| isAspect | back to summary |
|---|---|
| public boolean isAspect(Class<?> clazz) Implements org. 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. The reason for this latter test is that aspects written in the code-style (AspectJ language) also have the annotation present when compiled by ajc with the -1.5 flag, yet they cannot be consumed by Spring AOP.
| |
| validate | back to summary |
|---|---|
| public void validate(Class<?> aspectClass) throws AopConfigException Implements org. Doc from org. Is the given class a valid AspectJ aspect class?
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Annotation | |
| private final AbstractAspectJAdvisorFactory. | |
| private static final Map | |
| private final String | |
| private static final String[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private AbstractAspectJAdvisorFactory. | |
| public Annotation | |
| public AbstractAspectJAdvisorFactory. | |
| public String | |
| public String | |
| private String | |
| public String |
| annotation | back to summary |
|---|---|
| private final Annotation annotation | |
| annotationType | back to summary |
|---|---|
| private final AbstractAspectJAdvisorFactory. | |
| annotationTypeMap | back to summary |
|---|---|
| private static final Map<Class<?>, AbstractAspectJAdvisorFactory. | |
| argumentNames | back to summary |
|---|---|
| private final String argumentNames | |
| EXPRESSION_ATTRIBUTES | back to summary |
|---|---|
| private static final String[] EXPRESSION_ATTRIBUTES | |
| pointcutExpression | back to summary |
|---|---|
| private final String pointcutExpression | |
| AspectJAnnotation | back to summary |
|---|---|
| public AspectJAnnotation(Annotation annotation) | |
| determineAnnotationType | back to summary |
|---|---|
| private AbstractAspectJAdvisorFactory. | |
| getAnnotation | back to summary |
|---|---|
| public Annotation getAnnotation() | |
| getAnnotationType | back to summary |
|---|---|
| public AbstractAspectJAdvisorFactory. | |
| getArgumentNames | back to summary |
|---|---|
| public String getArgumentNames() | |
| getPointcutExpression | back to summary |
|---|---|
| public String getPointcutExpression() | |
| resolvePointcutExpression | back to summary |
|---|---|
| private String resolvePointcutExpression(Annotation annotation) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | getParameterNames(Method
the method to find parameter names for method)Implements org. null if they cannot be determined.
|
| public String[] | getParameterNames(Constructor<?>
the constructor to find parameter names for ctor)Implements org. null if they cannot be determined.
|
| EMPTY_ARRAY | back to summary |
|---|---|
| private static final String[] EMPTY_ARRAY | |
| AspectJAnnotationParameterNameDiscoverer | back to summary |
|---|---|
| private AspectJAnnotationParameterNameDiscoverer() | |
| getParameterNames | back to summary |
|---|---|
| public String[] getParameterNames(Method method) Implements org. Doc from org. Return parameter names for a method, or Individual entries in the array may be | |
| getParameterNames | back to summary |
|---|---|
| public String[] getParameterNames(Constructor<?> ctor) Implements org. Doc from org. Return parameter names for a constructor, or Individual entries in the array may be
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| public static final AbstractAspectJAdvisorFactory. | |
| public static final AbstractAspectJAdvisorFactory. | |
| public static final AbstractAspectJAdvisorFactory. | |
| public static final AbstractAspectJAdvisorFactory. | |
| public static final AbstractAspectJAdvisorFactory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractAspectJAdvisorFactory. | |
| public static AbstractAspectJAdvisorFactory. |
| AtAfter | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AtAfterReturning | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AtAfterThrowing | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AtAround | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AtBefore | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AtPointcut | back to summary |
|---|---|
| public static final AbstractAspectJAdvisorFactory. | |
| AspectJAnnotationType | back to summary |
|---|---|
| private AspectJAnnotationType() | |
| valueOf | back to summary |
|---|---|
| public static AbstractAspectJAdvisorFactory. | |
| values | back to summary |
|---|---|
| public static AbstractAspectJAdvisorFactory. | |