-
Notifications
You must be signed in to change notification settings - Fork 172
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
Allow to use all annotations as meta annotation #1012
Comments
I provide an implementation for that. |
Should it possible to support multiple annotations at once? This means, if i scan for an existence of |
I think except for The Imo as a general rule an annotation defined on a subannotation should always shadow the same annotation type from its superinterface. |
I think this makes the code really complicated. Isn't it better to leave that up to the user to decide how to use it? So we can use the same implementation for |
Intuitively I think that these annotations should work similar to other mechanisms that users might already know. |
It's a case by case to me. Basically the annotation is metadata and you can use them whatever way you want. Same way we made Said that, obviously following Java conventions most frameworks do not treat annotations in sub and parent class as repeatable, and instead they take the closest. -- To the topic at hand, I think a general all-repeatable solution would not the help the users. Questions about extension writing are the most common thing in the support channels. Also, I am not sure we need to create a proxy class for each annotation, for example for DefaultAttribute we configure them all in a single one. If only for performanca I think it's worth paying attention to each case.
I reviewed the current annotations and we have:
|
So the idea is to implement it the same way as spring it have. So I would like use the same behaviour for the @name annotation. Is that ok? So I would came back with a suggestion. |
I still think it's a case-by-case and would require special treatments, a general approach won't be possible. @location makes sense, but for instance:
PS: I realized there's another annotation I missed, |
I agree with @abelsromero: Every annotation needs to be treated individually. About making |
Based on the intial implementation #898 for the annotation
@Name
it should be possible to use all remaining annotations also as meta annotation.The text was updated successfully, but these errors were encountered: