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(java.lang.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(java.lang.String mappedName)
Convenience method when we have only a single method name to match.
|
void |
setMappedNames(java.lang.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(java.lang.String mappedName)
setMappedNames
, not both.public void setMappedNames(java.lang.String... mappedNames)
public NameMatchMethodPointcut addMethodName(java.lang.String name)
name
- name of the additional method that will matchNameMatchMethodPointcut.addMethodName(java.lang.String)
public Pointcut getPointcut()
PointcutAdvisor