Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-678

Consider expanding @WithAnnotations utilization

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Minor Minor
    • 2.1 (Discussion)
    • None
    • None
    • None

      Currently usage of @WithAnnotations is available only with ProcessAnnotatedType event. Maybe it could be helpful to expand this option also for other lifecycle events.

      For example I came across this extension https://github.com/wildfly-swarm/wildfly-swarm/blob/master/core/container/src/main/java/org/wildfly/swarm/container/runtime/cdi/configurable/ConfigurableExtension.java
      It basically observes all ProcessInjectionTarget events and tries to find @Configurable annotation in the related AnnotatedType (which is available in this case). Allowing to use @WithAnnotations in this case would solve this problem more gracefully I believe.

      It's likely minor enhancement but maybe it could be useful also in another cases.

              Unassigned Unassigned
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: