|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.RegexpMethodPointcut
Perl5 regular expression pointcut bean. JavaBean properties are:
Note: the regular expressions must be a match. For example,
.*get.* will match com.mycom.Foo.getBar().
get.* will not.
Currently uses Jakarta ORO regular expression library. Does not require J2SE 1.4, although it runs under 1.4.
| Field Summary |
| Fields inherited from interface org.springframework.aop.ClassFilter |
TRUE |
| Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
| Fields inherited from interface org.springframework.aop.MethodMatcher |
TRUE |
| Constructor Summary | |
RegexpMethodPointcut()
|
|
| Method Summary | |
ClassFilter |
getClassFilter()
|
java.lang.String[] |
getPatterns()
Return the regular expressions for method matching. |
boolean |
matches(java.lang.Class clazz)
Should the pointcut apply to the given interface or target class? |
boolean |
matches(java.lang.reflect.Method m,
java.lang.Class targetClass)
Try to match the regular expression against the fully qualified name of the method's declaring class, plus the name of the method. |
void |
setPattern(java.lang.String pattern)
Convenience method when we have only a single pattern. |
void |
setPatterns(java.lang.String[] patterns)
Set the regular expressions defining methods to match. |
| Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut |
getMethodMatcher |
| Methods inherited from class org.springframework.aop.support.StaticMethodMatcher |
isRuntime, matches |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegexpMethodPointcut()
| Method Detail |
public void setPattern(java.lang.String pattern)
throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternExceptionsetPatterns(java.lang.String[])
public void setPatterns(java.lang.String[] patterns)
throws org.apache.oro.text.regex.MalformedPatternException
patterns - Perl5 regular expressions describing methods
to match
org.apache.oro.text.regex.MalformedPatternExceptionpublic java.lang.String[] getPatterns()
public boolean matches(java.lang.reflect.Method m,
java.lang.Class targetClass)
For example, java.lang.Object.hashCode matches
any subclass of object's hashCode() method.
matches in interface MethodMatcherm - candidate methodtargetClass - target class (may be null, in which case the candidate
class must be taken to be the method's declaring class)
public boolean matches(java.lang.Class clazz)
ClassFilter
matches in interface ClassFilterclazz - candidate target class
public ClassFilter getClassFilter()
getClassFilter in interface PointcutgetClassFilter in class StaticMethodMatcherPointcut
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||