Class PackageMethodScanner

java.lang.Object
org.smartparam.engine.annotated.scanner.PackageMethodScanner
All Implemented Interfaces:
MethodScanner

public class PackageMethodScanner extends Object implements MethodScanner
Author:
Adam Dubiel
  • Constructor Details

    • PackageMethodScanner

      public PackageMethodScanner(PackageList packagesToScan)
  • Method Details

    • scanMethods

      public Map<String,Method> scanMethods(Class<? extends Annotation> annotationClass)
      Description copied from interface: MethodScanner
      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.
      Specified by:
      scanMethods in interface MethodScanner
      Parameters:
      annotationClass - annotation to look for
      Returns:
      map (name, method) of methods (no ordering guaranteed)