Uses AspectJ 5 AJType reflection API, enabling us to work with different AspectJ instantiation models such as "singleton", "pertarget" and "perthis".
org.springframework.aop.aspectj.AspectJExpressionPointcut
| Modifier and Type | Field and Description |
|---|---|
| private transient AjType | ajType
AspectJ reflection information. |
| private final Class | aspectClass
The aspect class, stored separately for re-resolution of the corresponding AjType on deserialization. |
| private final String | aspectName
The name of this aspect as defined to Spring (the bean name) - allows us to determine if two pieces of advice come from the same aspect and hence their relative precedence. |
| private final Pointcut | perClausePointcut
Spring AOP pointcut corresponding to the per clause of the aspect. |
| Access | Constructor and Description |
|---|---|
| public | AspectMetadata(Class<?>
the aspect class aspectClass, String the name of the aspect aspectName)Create a new AspectMetadata instance for the given aspect class. |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public AjType | |
| public Class | |
| public String | |
| public Pointcut | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void |
| ajType | back to summary |
|---|---|
| private transient AjType<?> ajType AspectJ reflection information. Re-resolved on deserialization since it isn't serializable itself. | |
| aspectClass | back to summary |
|---|---|
| private final Class<?> aspectClass The aspect class, stored separately for re-resolution of the corresponding AjType on deserialization. | |
| aspectName | back to summary |
|---|---|
| private final String aspectName The name of this aspect as defined to Spring (the bean name) - allows us to determine if two pieces of advice come from the same aspect and hence their relative precedence. | |
| perClausePointcut | back to summary |
|---|---|
| private final Pointcut perClausePointcut Spring AOP pointcut corresponding to the per clause of the
aspect. Will be the | |
| AspectMetadata | back to summary |
|---|---|
| public AspectMetadata(Class<?> aspectClass, String aspectName) Create a new AspectMetadata instance for the given aspect class. | |
| findPerClause | back to summary |
|---|---|
| private String findPerClause(Class<?> aspectClass) Extract contents from String of form | |
| getAjType | back to summary |
|---|---|
| public AjType Return AspectJ reflection information. | |
| getAspectClass | back to summary |
|---|---|
| public Class Return the aspect class. | |
| getAspectName | back to summary |
|---|---|
| public String getAspectName() Return the aspect name. | |
| getPerClausePointcut | back to summary |
|---|---|
| public Pointcut getPerClausePointcut() Return a Spring pointcut expression for a singleton aspect.
(e.g. | |
| isLazilyInstantiated | back to summary |
|---|---|
| public boolean isLazilyInstantiated() Return whether the aspect needs to be lazily instantiated. | |
| isPerThisOrPerTarget | back to summary |
|---|---|
| public boolean isPerThisOrPerTarget() Return whether the aspect is defined as "perthis" or "pertarget". | |
| isPerTypeWithin | back to summary |
|---|---|
| public boolean isPerTypeWithin() Return whether the aspect is defined as "pertypewithin". | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException | |