org.springframework.aop.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, setPatterns, JdkRegexpMethodPointcut
| Modifier and Type | Class and Description |
|---|---|
| private static class | RegexpMethodPointcutAdvisor.
Empty class used for a serializable monitor object. |
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private AbstractRegexpMethodPointcut | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RegexpMethodPointcutAdvisor(Advice
the advice to use advice)Create a RegexpMethodPointcutAdvisor for the given advice. |
| public | RegexpMethodPointcutAdvisor(String
the pattern to use pattern, Advice the advice to use advice)Create a RegexpMethodPointcutAdvisor for the given advice. |
| public | RegexpMethodPointcutAdvisor(String[]
the patterns to use patterns, Advice the advice to use advice)Create a RegexpMethodPointcutAdvisor for the given advice. |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractRegexpMethodPointcut | Returns: the Pointcut instance (nevernull)Create the actual pointcut: By default, a |
| public Pointcut | getPointcut()
Implements org. Initialize the singleton Pointcut held within this Advisor. |
| public void | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| patterns | back to summary |
|---|---|
| private String[] patterns
| |
| pointcut | back to summary |
|---|---|
| private AbstractRegexpMethodPointcut pointcut
| |
| pointcutMonitor | back to summary |
|---|---|
| private final Object pointcutMonitor | |
| RegexpMethodPointcutAdvisor | back to summary |
|---|---|
| public RegexpMethodPointcutAdvisor() Create an empty RegexpMethodPointcutAdvisor.
| |
| RegexpMethodPointcutAdvisor | back to summary |
|---|---|
| public RegexpMethodPointcutAdvisor(Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice. The pattern still needs to be specified afterwards.
| |
| RegexpMethodPointcutAdvisor | back to summary |
|---|---|
| public RegexpMethodPointcutAdvisor(String pattern, Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice. | |
| RegexpMethodPointcutAdvisor | back to summary |
|---|---|
| public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice. | |
| createPointcut | back to summary |
|---|---|
| protected AbstractRegexpMethodPointcut createPointcut() Create the actual pointcut: By default, a
| |
| getPointcut | back to summary |
|---|---|
| public Pointcut getPointcut() Implements org. Initialize the singleton Pointcut held within this Advisor.
| |
| setPattern | back to summary |
|---|---|
| public void setPattern(String pattern) Set the regular expression defining methods to match. Use either this method or
| |
| setPatterns | back to summary |
|---|---|
| public void setPatterns(String... patterns) Set the regular expressions defining methods to match. To be passed through to the pointcut implementation. Matching will be the union of all these; if any of the patterns matches, the pointcut matches. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| private |
| SerializableMonitor | back to summary |
|---|---|
| private SerializableMonitor() | |