Top Description Fields Constructors Methods
org.springframework.aop.support

public Class NameMatchMethodPointcutAdvisor

extends AbstractGenericPointcutAdvisor
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.aopalliance.aop.Advice, org.springframework.aop.ClassFilter, .Pointcut

Convenient class for name-match method pointcuts that hold an Advice, making them an Advisor.
Authors
Juergen Hoeller, Rob Harrop
See Also
NameMatchMethodPointcut

Field Summary

Modifier and TypeField and Description
private final NameMatchMethodPointcut

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public NameMatchMethodPointcut

Returns:

this pointcut to allow for multiple additions in one line
addMethodName
(String
the name of the additional method that will match
name
)

Add another eligible method name, in addition to those already named.

public Pointcut
getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

public void
setClassFilter(ClassFilter classFilter)

Set the ClassFilter to use for this pointcut.

public void
setMappedName(String mappedName)

Convenience method when we have only a single method name to match.

public void
setMappedNames(String... mappedNames)

Set the method names defining methods to match.

Inherited from org.springframework.aop.support.AbstractGenericPointcutAdvisor:
getAdvicesetAdvicetoString

Field Detail

pointcutback to summary
private final NameMatchMethodPointcut pointcut

Constructor Detail

NameMatchMethodPointcutAdvisorback to summary
public NameMatchMethodPointcutAdvisor()
NameMatchMethodPointcutAdvisorback to summary
public NameMatchMethodPointcutAdvisor(Advice advice)

Method Detail

addMethodNameback to summary
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:String

the name of the additional method that will match

Returns:NameMatchMethodPointcut

this pointcut to allow for multiple additions in one line

See Also
NameMatchMethodPointcut#addMethodName
getPointcutback to summary
public Pointcut getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Doc from org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

Annotations
@Override
setClassFilterback to summary
public void setClassFilter(ClassFilter classFilter)

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

See Also
NameMatchMethodPointcut#setClassFilter
setMappedNameback to summary
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.

See Also
setMappedNames, NameMatchMethodPointcut#setMappedName
setMappedNamesback to summary
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.

See Also
NameMatchMethodPointcut#setMappedNames