Class MetaAnnotationMethodMatcher

  • All Implemented Interfaces:
    org.springframework.aop.MethodMatcher

    public class MetaAnnotationMethodMatcher
    extends org.springframework.aop.support.annotation.AnnotationMethodMatcher
    this code is taken almost verbatim from the Spring Integration project's source code where it's a static private inner class.
    Author:
    Mark Fisher
    • Field Summary

      • Fields inherited from interface org.springframework.aop.MethodMatcher

        TRUE
    • Constructor Detail

      • MetaAnnotationMethodMatcher

        public MetaAnnotationMethodMatcher​(Class<? extends Annotation> annotationType)
        Create a new AnnotationClassFilter for the given annotation type.
        Parameters:
        annotationType - the annotation type to look for
    • Method Detail

      • matches

        public boolean matches​(Method method,
                               Class targetClass)
        Specified by:
        matches in interface org.springframework.aop.MethodMatcher
        Overrides:
        matches in class org.springframework.aop.support.annotation.AnnotationMethodMatcher