open class AspectMetadata : Serializable
Metadata for an AspectJ aspect class, with an additional Spring AOP pointcut for the per clause.
Uses AspectJ 5 AJType reflection API, enabling us to work with different AspectJ instantiation models such as "singleton", "pertarget" and "perthis".
Author
Rod Johnson
Author
Juergen Hoeller
Since
2.0
See Also
org.springframework.aop.aspectj.AspectJExpressionPointcut
AspectMetadata(aspectClass: Class<*>, aspectName: String)
Create a new AspectMetadata instance for the given aspect class. |
open fun getAjType(): AjType<*>
Return AspectJ reflection information. |
|
open fun getAspectClass(): Class<*>
Return the aspect class. |
|
open fun getAspectName(): String
Return the aspect class. |
|
open fun getPerClausePointcut(): Pointcut
Return a Spring pointcut expression for a singleton aspect. (e.g. |
|
open fun isLazilyInstantiated(): Boolean
Return whether the aspect needs to be lazily instantiated. |
|
open fun isPerThisOrPerTarget(): Boolean
Return whether the aspect is defined as "perthis" or "pertarget". |
|
open fun isPerTypeWithin(): Boolean
Return whether the aspect is defined as "pertypewithin". |