Introduce MergedAnnotation finder methods #22569
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Code to locate methods on classes based on annotations currently mostly uses a combination of
MethodIntrospector
andAnnotatedElementUtils
.For example, in
EventListenerMethodProcessor
:spring-framework/spring-context/src/main/java/org/springframework/context/event/EventListenerMethodProcessor.java
Lines 148 to 150 in 6266370
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 toMergedAnnotation
.For example:
The text was updated successfully, but these errors were encountered: