spring-framework / org.springframework.aop.aspectj / AspectJExpressionPointcut

AspectJExpressionPointcut

open class AspectJExpressionPointcut : AbstractExpressionPointcut, ClassFilter, IntroductionAwareMethodMatcher, BeanFactoryAware

Spring org.springframework.aop.Pointcut implementation that uses the AspectJ weaver to evaluate a pointcut expression.

The pointcut expression value is an AspectJ expression. This can reference other pointcuts and use composition and other operations.

Naturally, as this is to be processed by Spring AOP's proxy-based model, only method execution pointcuts are supported.

Author
Rob Harrop

Author
Adrian Colyer

Author
Rod Johnson

Author
Juergen Hoeller

Author
Ramnivas Laddad

Author
Dave Syer

Since
2.0

Constructors

<init>

AspectJExpressionPointcut()

Create a new default AspectJExpressionPointcut.

AspectJExpressionPointcut(declarationScope: Class<*>, paramNames: Array<String>, paramTypes: Array<Class<*>>)

Create a new AspectJExpressionPointcut with the given settings.

Functions

equals

open fun equals(other: Any?): Boolean

getClassFilter

open fun getClassFilter(): ClassFilter

getMethodMatcher

open fun getMethodMatcher(): MethodMatcher

getPointcutExpression

open fun getPointcutExpression(): PointcutExpression

Return the underlying AspectJ pointcut expression.

hashCode

open fun hashCode(): Int

isRuntime

open fun isRuntime(): Boolean

matches

open fun matches(targetClass: Class<*>): Boolean
open fun matches(method: Method, targetClass: Class<*>, beanHasIntroductions: Boolean): Boolean
open fun matches(method: Method, targetClass: Class<*>): Boolean
open fun matches(method: Method, targetClass: Class<*>, vararg args: Any): Boolean

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit

setParameterNames

open fun setParameterNames(vararg names: String): Unit

Set the parameter names for the pointcut.

setParameterTypes

open fun setParameterTypes(vararg types: Class<*>): Unit

Set the parameter types for the pointcut.

setPointcutDeclarationScope

open fun setPointcutDeclarationScope(pointcutDeclarationScope: Class<*>): Unit

Set the declaration scope for the pointcut.

toString

open fun toString(): String

Inherited Functions

getExpression

open fun getExpression(): String

Return this pointcut's expression.

getLocation

open fun getLocation(): String

Return location information about the pointcut expression if available. This is useful in debugging.

setExpression

open fun setExpression(expression: String): Unit

setLocation

open fun setLocation(location: String): Unit

Set the location for debugging.