Use bean introspection correctly #7702
Unanswered
nbrugger-tgm
asked this question in
Q&A
Replies: 2 comments 2 replies
-
is there an annotation on the interface method? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You need to annotate the method with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, my question evolves arround how micronauts autogeneration & introspecton works.
As far as i understand the micronaut annotation processor generates
$Definition
and$Definition$Reference
files whos job is to reflect te information that Micronaut needs for injection, interception AND also provide a more eficient way of reflection. I tried to write a test like thisBut
orElseThrow
throws since it doesn't finds the method.After further investiagation I found that in the
$Definition
and$Definition$Reference
do not contain any trace of the method. Also i found out that it should be defined in a$Exec
file which didn't exists. So my first guess is that micronaut only generates things that it needs for CDI and AOP? (When i annotate the method with an AOP advice it is generated)Am i miss-using the micronaut beancontext introspection?
The problems arising from this are quite numerous since this completely removes any trace of the annotations present on
SomeApi#addSomething
.Beta Was this translation helpful? Give feedback.
All reactions