Class RegexpMethodPointcutAdvisor

All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Ordered

public class RegexpMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor
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.

Author:
Rod Johnson, Juergen Hoeller
See Also:
  • Constructor Details

    • RegexpMethodPointcutAdvisor

      public RegexpMethodPointcutAdvisor()
      Create an empty RegexpMethodPointcutAdvisor.
      See Also:
    • RegexpMethodPointcutAdvisor

      public RegexpMethodPointcutAdvisor(Advice advice)
      Create a RegexpMethodPointcutAdvisor for the given advice. The pattern still needs to be specified afterwards.
      Parameters:
      advice - the advice to use
      See Also:
    • RegexpMethodPointcutAdvisor

      public RegexpMethodPointcutAdvisor(String pattern, Advice advice)
      Create a RegexpMethodPointcutAdvisor for the given advice.
      Parameters:
      pattern - the pattern to use
      advice - the advice to use
    • RegexpMethodPointcutAdvisor

      public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice)
      Create a RegexpMethodPointcutAdvisor for the given advice.
      Parameters:
      patterns - the patterns to use
      advice - the advice to use
  • Method Details