|
|||||||||
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.AbstractGenericPointcutAdvisor org.springframework.aop.support.RegexpMethodPointcutAdvisor
public class 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.
By default, JdkRegexpMethodPointcut
will be used. To choose
a specific one, override the createPointcut()
method.
setPattern(java.lang.String)
,
setPatterns(java.lang.String[])
,
JdkRegexpMethodPointcut
,
Serialized FormField Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor 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 actual pointcut: By default, a JdkRegexpMethodPointcut
will be used. |
Pointcut |
getPointcut()
Initialize the singleton Pointcut held within this Advisor. |
void |
setPattern(String pattern)
Set the regular expression defining methods to match. |
void |
setPatterns(String[] patterns)
Set the regular expressions defining methods to match. |
String |
toString()
|
Methods inherited from class org.springframework.aop.support.AbstractGenericPointcutAdvisor |
---|
getAdvice, setAdvice |
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor |
---|
equals, getOrder, hashCode, isPerInstance, setOrder |
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[])
,
AbstractGenericPointcutAdvisor.setAdvice(org.aopalliance.aop.Advice)
public RegexpMethodPointcutAdvisor(Advice advice)
advice
- the advice to usesetPattern(java.lang.String)
,
setPatterns(java.lang.String[])
public RegexpMethodPointcutAdvisor(String pattern, Advice advice)
pattern
- the pattern to useadvice
- the advice to usepublic RegexpMethodPointcutAdvisor(String[] patterns, Advice advice)
patterns
- the patterns to useadvice
- the advice to useMethod Detail |
---|
public void setPattern(String pattern)
Use either this method or setPatterns(java.lang.String[])
, not both.
setPatterns(java.lang.String[])
public void setPatterns(String[] patterns)
Matching will be the union of all these; if any of the patterns matches, the pointcut matches.
AbstractRegexpMethodPointcut.setPatterns(java.lang.String[])
public Pointcut getPointcut()
protected AbstractRegexpMethodPointcut createPointcut()
JdkRegexpMethodPointcut
will be used.
null
)public String toString()
toString
in class AbstractGenericPointcutAdvisor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |