Class PackageMethodScanner
java.lang.Object
io.higson.runtime.engine.annotated.scanner.PackageMethodScanner
- All Implemented Interfaces:
MethodScanner
- Author:
- Adam Dubiel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscanMethods(Class<? extends Annotation> annotationClass) Return all methods annotated with given annotation that can be found in packages.
-
Constructor Details
-
PackageMethodScanner
-
-
Method Details
-
scanMethods
Description copied from interface:MethodScannerReturn 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,SmartParamExceptionis thrown.- Specified by:
scanMethodsin interfaceMethodScanner- Parameters:
annotationClass- annotation to look for- Returns:
- map (name, method) of methods (no ordering guaranteed)
-