spring-framework / org.springframework.aop.support / NameMatchMethodPointcutAdvisor

NameMatchMethodPointcutAdvisor

open class NameMatchMethodPointcutAdvisor : AbstractGenericPointcutAdvisor

Convenient class for name-match method pointcuts that hold an Advice, making them an Advisor.

Author
Juergen Hoeller

Author
Rob Harrop

See Also
NameMatchMethodPointcut

Constructors

<init>

NameMatchMethodPointcutAdvisor()
NameMatchMethodPointcutAdvisor(advice: Advice)

Functions

addMethodName

open fun addMethodName(name: String): NameMatchMethodPointcut

Add another eligible method name, in addition to those already named. Like the set methods, this method is for use when configuring proxies, before a proxy is used.

getPointcut

open fun getPointcut(): Pointcut

setClassFilter

open fun setClassFilter(classFilter: ClassFilter): Unit

Set the ClassFilter to use for this pointcut. Default is ClassFilter#TRUE.

setMappedName

open fun setMappedName(mappedName: String): Unit

Convenience method when we have only a single method name to match. Use either this method or setMappedNames, not both.

setMappedNames

open fun setMappedNames(vararg mappedNames: String): Unit

Set the method names defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.