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

Allow using Maps to specify nested annotations #107

Conversation

Christopher-Chianelli
Copy link
Contributor

All Java Annotations extend java.lang.annotation.Annotation,
which defines a method annotationType that return the type
of the annotation (and not the proxy class). As such, it can
be used as a key in a Map to specify the type of the Annotation
to create, with the remaining keys being the elements of the
Annotation.

All Java Annotations extend java.lang.annotation.Annotation,
which defines a method `annotationType` that return the type
of the annotation (and not the proxy class). As such, it can
be used as a key in a Map to specify the type of the Annotation
to create, with the remaining keys being the elements of the
Annotation.
@stuartwdouglas stuartwdouglas merged commit b85aae8 into quarkusio:main May 1, 2022
@Ladicek
Copy link
Contributor

Ladicek commented May 2, 2022

I personally think that adding a method AnnotationCreator addNested(String annotationType) (that returns a new AnnotationCreator for the nested annotation) would be nicer, but this works too :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants