Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect interface parameter annotations also from spring-messaging HandlerMethod #30801

Closed
robert-engel opened this issue Jul 3, 2023 · 1 comment
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Milestone

Comments

@robert-engel
Copy link

Affects: all versions


For spring-web support was added which allows controller methods to inherit the annotations on parameters from interfaces. See #15682 and 790d515

For spring-messaging this is not currently possible. It would be very nice if that could be possible there as well.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 3, 2023
@jhoeller jhoeller added in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jul 4, 2023
@jhoeller jhoeller self-assigned this Jul 4, 2023
@jhoeller jhoeller added this to the 6.1.0-M2 milestone Jul 4, 2023
@rstoyanchev rstoyanchev changed the title Messaging HandlerMethod: Expose interface parameter annotations as well Detect interface parameter annotations also from spring-messaging HandlerMethod Jul 4, 2023
@jhoeller
Copy link
Contributor

jhoeller commented Jul 4, 2023

Implemented through extracting a common AnnotatedMethod base class from both of our HandlerMethod variants, managing the entire annotation introspection arrangement including the exposure of interface parameter annotations.

Thanks for raising this! It has been on our wishlist for a while but we never got around to it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants