open class ReflectiveAspectJAdvisorFactory : AbstractAspectJAdvisorFactory, Serializable
Factory that can create Spring AOP Advisors given AspectJ classes from classes honoring the AspectJ 5 annotation syntax, using reflection to invoke the corresponding advice methods.
Author
Rod Johnson
Author
Adrian Colyer
Author
Juergen Hoeller
Author
Ramnivas Laddad
Author
Phillip Webb
Since
2.0
ReflectiveAspectJAdvisorFactory()
Create a new ReflectiveAspectJAdvisorFactory(beanFactory: BeanFactory)
Create a new |
open fun getAdvice(candidateAdviceMethod: Method, expressionPointcut: AspectJExpressionPointcut, aspectInstanceFactory: MetadataAwareAspectInstanceFactory, declarationOrder: Int, aspectName: String): Advice |
|
open fun getAdvisor(candidateAdviceMethod: Method, aspectInstanceFactory: MetadataAwareAspectInstanceFactory, declarationOrderInAspect: Int, aspectName: String): Advisor |
|
open fun getAdvisors(aspectInstanceFactory: MetadataAwareAspectInstanceFactory): MutableList<Advisor> |
open fun isAspect(clazz: Class<*>): Boolean
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. |
|
open fun validate(aspectClass: Class<*>): Unit |