Pointcut bean for simple method name matches, as alternative to regexp patterns.
Does not handle overloaded methods: all methods *with a given name will be eligible.
author: Juergen Hoeller author: Rod Johnson author: Rob Harrop since: 11.02.2004 See Also:NameMatchMethodPointcut.isMatch
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.
NB: This method does not work after the proxy is in
use, as advice chains will be cached.
Parameters: name - name of the additional method that will match this pointcut to allow for multiple additions in one line
Return if the given method name matches the mapped name.
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
as well as direct equality. Can be overridden in subclasses.
Parameters: methodName - the method name of the class Parameters: mappedName - the name in the descriptor if the names match See Also:org.springframework.util.PatternMatchUtils.simpleMatch(StringString)
public void setMappedName(String mappedName)(Code)
Convenience method when we have only a single method name to match.
Use either this method or setMappedNames, not both.
See Also:NameMatchMethodPointcut.setMappedNames
setMappedNames
public void setMappedNames(String[] mappedNames)(Code)
Set the method names defining methods to match.
Matching will be the union of all these; if any match,
the pointcut matches.
Methods inherited from org.springframework.aop.support.StaticMethodMatcherPointcut