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 |
boolean | matches(Method m, Class targetClass) |
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. |
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.
to Class java.lang.String