public class

NameMatchMethodPointcutAdvisor

extends AbstractGenericPointcutAdvisor
java.lang.Object
   ↳ org.springframework.aop.support.AbstractPointcutAdvisor
     ↳ org.springframework.aop.support.AbstractGenericPointcutAdvisor
       ↳ org.springframework.aop.support.NameMatchMethodPointcutAdvisor

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.Ordered
Public Constructors
NameMatchMethodPointcutAdvisor()
NameMatchMethodPointcutAdvisor(Advice advice)
Public Methods
NameMatchMethodPointcut addMethodName(String name)
Add another eligible method name, in addition to those already named.
Pointcut getPointcut()
void setClassFilter(ClassFilter classFilter)
Set the ClassFilter to use for this pointcut.
void setMappedName(String mappedName)
Convenience method when we have only a single method name to match.
void setMappedNames(String[] mappedNames)
Set the method names defining methods to match.
[Expand]
Inherited Methods
From class org.springframework.aop.support.AbstractGenericPointcutAdvisor
From class org.springframework.aop.support.AbstractPointcutAdvisor
From class java.lang.Object
From interface org.springframework.aop.Advisor
From interface org.springframework.aop.PointcutAdvisor
From interface org.springframework.core.Ordered

Public Constructors

public NameMatchMethodPointcutAdvisor ()

public NameMatchMethodPointcutAdvisor (Advice advice)

Public Methods

public NameMatchMethodPointcut addMethodName (String name)

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.

Parameters
name name of the additional method that will match
Returns
  • this pointcut to allow for multiple additions in one line

public Pointcut getPointcut ()

public void setClassFilter (ClassFilter classFilter)

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

public void setMappedName (String mappedName)

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

public void setMappedNames (String[] mappedNames)

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