Closed as not planned
Description
Code to locate methods on classes based on annotations currently mostly uses a combination of MethodIntrospector
and AnnotatedElementUtils
.
For example, in EventListenerMethodProcessor
:
With the addition of the new MergedAnnotations
API along with the annotation index work it might be nicer if we had a first class way to find such methods.
One possible solution would be to add finder
methods to MergedAnnotation
.
For example:
MergedAnnotation.find(SomeAnnotation.class).onMethodsIn(SomeCandidate.class);