public class NameMatchMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor
NameMatchMethodPointcut
,
Serialized FormHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
NameMatchMethodPointcutAdvisor() |
NameMatchMethodPointcutAdvisor(Advice advice) |
Modifier and Type | Method and Description |
---|---|
NameMatchMethodPointcut |
addMethodName(String name)
Add another eligible method name, in addition to those already named.
|
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor.
|
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.
|
getAdvice, setAdvice, toString
equals, getOrder, hashCode, isPerInstance, setOrder
public NameMatchMethodPointcutAdvisor()
public NameMatchMethodPointcutAdvisor(Advice advice)
public void setClassFilter(ClassFilter classFilter)
ClassFilter
to use for this pointcut.
Default is ClassFilter.TRUE
.public void setMappedName(String mappedName)
setMappedNames
, not both.public void setMappedNames(String... mappedNames)
public NameMatchMethodPointcut addMethodName(String name)
name
- name of the additional method that will matchNameMatchMethodPointcut.addMethodName(java.lang.String)
public Pointcut getPointcut()
PointcutAdvisor