[cdi-dev] [JBoss JIRA] (CDI-678) Consider expanding @WithAnnotations utilization

Tomas Remes (JIRA) issues at jboss.org
Fri Jan 6 08:55:00 EST 2017

     [ https://issues.jboss.org/browse/CDI-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Remes updated CDI-678:
    Fix Version/s: 2.1 (Discussion)

> Consider expanding @WithAnnotations utilization
> -----------------------------------------------
>                 Key: CDI-678
>                 URL: https://issues.jboss.org/browse/CDI-678
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Tomas Remes
>            Priority: Minor
>             Fix For: 2.1 (Discussion)
> 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.

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list