Menu
  • HOME
  • TAGS

CDI Qualifier Inheritcance

java,nested,cdi,inherited

This is not CDI/Qualifier specific, its a Java annotation issue. You can get the annotation's annotations and then read the values. Here is a small example: @MainServer public String annotatedField = "nn"; Field field = getClass().getField("annotatedField"); MainServer server = field.getAnnotation(MainServer.class); ServerConfiguration configuration = server.annotationType().getAnnotation(ServerConfiguration.class); String url = configuration.url(); // localhost:8080...