Does micronaut support loading Enum Fields as Bean Definitions?

490 Views Asked by At

In my micronaut application I have various Enum fields that contain an annotation (AnnotationA). When this annotation is placed on a Bean class (not an enum), I can use the following statement to retrieve all of the Bean definitions containing this annotation.

applicationContext.getBeanDefinitions(Qualifiers.byStereotype(AnnotationA.class))

But when the same annotation is placed on an enum value I cannot use this same call to retrieve all of the enums that have this annotation. Would anyone happen to know of a way that I can retrieve the enum values containing this annotation?

0

There are 0 best solutions below