Spike - Investigate possible ways to determine what annotations exist on classes which implement interfaces that contain annotations. #1576
Labels
feature request
Suggestion for a new product enhancement or change
jan-mar qtr
Represents proposed work item for the Jan-Mar quarter
The problem with annotating interfaces is that those annotations are lost at runtime on the implementing classes. So when you have a controller that implements an interface, and that interface's methods are annotated with a Spring mapping annotation, we can't pick that up, so we have to default to the method name. See the javadoc for Annotation Type Inherited :
The goal of the spike is to see if there is any way to determine these annotations at runtime, possible through reflection of the target interface(s) to fetch annotations and map those to classes that implement the interface(s).
The text was updated successfully, but these errors were encountered: