Interface MethodScanner

All Known Implementing Classes:
PackageMethodScanner
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MethodScanner
Annotation scanner util specializing in scanning methods.
Author:
Adam Dubiel
  • Method Summary

    Modifier and Type
    Method
    Description
    scanMethods(Class<? extends Annotation> annotationClass)
    Return all methods annotated with given annotation that can be found in packages.
  • Method Details

    • scanMethods

      Map<String,Method> scanMethods(Class<? extends Annotation> annotationClass)
      Return all methods annotated with given annotation that can be found in packages. Annotation should have a value() method returning string, as its value will be used as method unique name. If more than one method has same name, SmartParamException is thrown.
      Parameters:
      annotationClass - annotation to look for
      Returns:
      map (name, method) of methods (no ordering guaranteed)