org.springframework.aop.support
Class NameMatchMethodPointcut

org.springframework.aop.support.StaticMethodMatcher
  |
  +--org.springframework.aop.support.StaticMethodMatcherPointcut
        |
        +--org.springframework.aop.support.NameMatchMethodPointcut
Direct Known Subclasses:
NameMatchMethodPointcutAroundAdvisor

public class NameMatchMethodPointcut
extends StaticMethodMatcherPointcut

Pointcut bean for simple method name matches, as alternative to regexp patterns.

Author:
Juergen Hoeller
Since: 11.02.2004
See Also: isMatch(java.lang.String,java.lang.String)

Method Summary
 booleanmatches(Method m, Class targetClass)
           
 voidsetMappedName(String mappedName)
          Convenience method when we have only a single method name to match.
 voidsetMappedNames(String[] mappedNames)
          Set the method names defining methods to match.

Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher

Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches

Method Detail

matches

public boolean matches(Method m, Class targetClass)

setMappedName

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(java.lang.String[])

setMappedNames

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.

Association Links

to Class java.lang.String