-
Notifications
You must be signed in to change notification settings - Fork 123
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
New method ResourceInfo.getAnnotation() #1303
base: main
Are you sure you want to change the base?
Conversation
Kindly requesting to continue our discussion here. :-) In particular the question is: What to do with custom annotations like WDYT? |
Shouldn't a Jakarta REST API for retrieving the effective annotations for a given resource method always use the Jakarta REST annotation inheritance rules? Just thinking out loudly. I'm not 100% myself sure yet. |
You missed the point that the customization of the algorithm is for custom annotations only. For JAX-RS annotations certainly always the JAX-RS algorithm is used. This customization is needed as e. g. |
I'm not too sure how I feel about that. The enum feels a bit clumsy, but I might not fully understand the use-case. While I can appreciate that Note, I'm not convinced one way or the other, this is just my initial take on it. I also wonder if the return type should be something like I'm also not to clear on the meaning on
What does that mean? Is there an expectation that annotations on interfaces get included? Which annotation wins in a case where both an interface and implementation are annotated? |
Regarding singular / plural: Agreed, we should go with plural. Whether or not we have to deal with custom algorithms at all: I agree that is something missing in the JRE in fact. It would simply be good to put the algorithm at the I also dislike the clumsy
I hope that sheds some light, if not please ask! :-) |
This PR is a draft for further discussion of
ResourceInfo.getAnnotation()
.It is not intended for code review, voting, or merge. Please use it solely for discussion, unless we agreed upon the final API and have added TCK tests.
Closes #1292