Micronaut/Introspection API to search for all interfaces that has a certain annotation. #9439
-
This is not a bean/object but an interface only(a type), annotated with, say DAO.class. I could achieve this in java reflection as follows. Is there a way I can achieve same using introspection/reflection free manner so that I will not have to use reflection.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
you could try the |
Beta Was this translation helpful? Give feedback.
-
introspections are generally for JavaBeans/records to be able read/write properties. You can remove |
Beta Was this translation helpful? Give feedback.
you can use
getClass().getInterfaces()