org.springframework.aop.support

Class DynamicMethodMatcher

  • java.lang.Object
    • org.springframework.aop.support.DynamicMethodMatcher
  • All Implemented Interfaces:
    MethodMatcher
    Direct Known Subclasses:
    DynamicMethodMatcherPointcut


    public abstract class DynamicMethodMatcher
    extends java.lang.Object
    implements MethodMatcher
    Convenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.
    Author:
    Rod Johnson
    • Constructor Detail

      • DynamicMethodMatcher

        public DynamicMethodMatcher()
    • Method Detail

      • matches

        public boolean matches(java.lang.reflect.Method method,
                               java.lang.Class<?> targetClass)
        Can override to add preconditions for dynamic matching. This implementation always returns true.
        Specified by:
        matches in interface MethodMatcher
        Parameters:
        method - the candidate method
        targetClass - the target class
        Returns:
        whether or not this method matches statically