|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.AbstractPointcutAdvisor org.springframework.aop.support.RegexpMethodPointcutAdvisor
Convenient class for regexp method pointcuts that hold an Advice, making them an Advisor.
Configure this class using the "pattern" and "patterns" pass-through properties. These are analogous to the pattern and patterns properties of AbstractRegexpMethodPointcut.
Can delegate to any AbstractRegexpMethodPointcut subclass.
To choose a specific one, either override createPointcut
or set the "perl5" flag accordingly.
setPattern(java.lang.String)
,
setPatterns(java.lang.String[])
,
setPerl5(boolean)
,
createPointcut()
,
AbstractRegexpMethodPointcut
,
Serialized FormConstructor Summary | |
RegexpMethodPointcutAdvisor()
Create an empty RegexpMethodPointcutAdvisor. |
|
RegexpMethodPointcutAdvisor(Advice advice)
Create a RegexpMethodPointcutAdvisor for the given advice. |
|
RegexpMethodPointcutAdvisor(String[] patterns,
Advice advice)
Create a RegexpMethodPointcutAdvisor for the given advice. |
|
RegexpMethodPointcutAdvisor(String pattern,
Advice advice)
Create a RegexpMethodPointcutAdvisor for the given advice. |
Method Summary | |
protected AbstractRegexpMethodPointcut |
createPointcut()
Create the default pointcut: a Perl5RegexpMethodPointcut. |
Pointcut |
getPointcut()
Initialize the singleton pointcut held within this advisor. |
void |
setPattern(String pattern)
Convenience method when we have only a single pattern. |
void |
setPatterns(String[] patterns)
Set the regular expressions defining methods to match. |
void |
setPerl5(boolean perl5)
Set whether to use Perl5 regexp syntax. |
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor |
equals, getAdvice, getOrder, hashCode, isPerInstance, setAdvice, setOrder, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RegexpMethodPointcutAdvisor()
setPattern(java.lang.String)
,
setPatterns(java.lang.String[])
,
setPerl5(boolean)
,
AbstractPointcutAdvisor.setAdvice(org.aopalliance.aop.Advice)
public RegexpMethodPointcutAdvisor(Advice advice)
advice
- the advice to usesetPattern(java.lang.String)
,
setPatterns(java.lang.String[])
,
setPerl5(boolean)
public RegexpMethodPointcutAdvisor(String pattern, Advice advice)
pattern
- the pattern to useadvice
- the advice to usesetPerl5(boolean)
public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice)
patterns
- the patterns to useadvice
- the advice to usesetPerl5(boolean)
Method Detail |
public void setPattern(String pattern)
To be passed through to the pointcut implementation.
setPatterns(java.lang.String[])
public void setPatterns(String[] patterns)
To be passed through to the pointcut implementation.
patterns
- regular expressions describing methods to matchpublic void setPerl5(boolean perl5)
Alternatively, override the createPointcut
method.
createPointcut()
,
Perl5RegexpMethodPointcut
,
JdkRegexpMethodPointcut
public Pointcut getPointcut()
protected AbstractRegexpMethodPointcut createPointcut()
Alternatively, set the "perl5" flag.
setPerl5(boolean)
,
AbstractRegexpMethodPointcut
,
Perl5RegexpMethodPointcut
,
JdkRegexpMethodPointcut
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |