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.
Annotation scanner util specializing in scanning methods.
- Author:
- Adam Dubiel
-
Method Summary
Modifier and TypeMethodDescriptionscanMethods(Class<? extends Annotation> annotationClass) Return all methods annotated with given annotation that can be found in packages.
-
Method Details
-
scanMethods
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,SmartParamExceptionis thrown.- Parameters:
annotationClass- annotation to look for- Returns:
- map (name, method) of methods (no ordering guaranteed)
-