Class StaticMethodMatcherPointcut

All Implemented Interfaces:
MethodMatcher, Pointcut
Direct Known Subclasses:
AbstractRegexpMethodPointcut, JCacheOperationSourcePointcut, NameMatchMethodPointcut, StaticMethodMatcherPointcutAdvisor

public abstract class StaticMethodMatcherPointcut extends StaticMethodMatcher implements Pointcut
Convenient superclass when we want to force subclasses to implement the MethodMatcher interface but subclasses will want to be pointcuts.

The "classFilter" property can be set to customize ClassFilter behavior. The default is ClassFilter.TRUE.

Rod Johnson, Juergen Hoeller
  • Constructor Details

    • StaticMethodMatcherPointcut

      public StaticMethodMatcherPointcut()
  • Method Details

    • setClassFilter

      public void setClassFilter(ClassFilter classFilter)
      Set the ClassFilter to use for this pointcut. Default is ClassFilter.TRUE.
    • getClassFilter

      public ClassFilter getClassFilter()
      Description copied from interface: Pointcut
      Return the ClassFilter for this pointcut.
      Specified by:
      getClassFilter in interface Pointcut
      the ClassFilter (never null)
    • getMethodMatcher

      public final MethodMatcher getMethodMatcher()
      Description copied from interface: Pointcut
      Return the MethodMatcher for this pointcut.
      Specified by:
      getMethodMatcher in interface Pointcut
      the MethodMatcher (never null)