[cdi-dev] [JBoss JIRA] (CDI-643) Provide a way to easily configure injection point of an InjectionTarget

Antoine Sabot-Durand (JIRA) issues at jboss.org
Tue Nov 1 11:43:00 EDT 2016


    [ https://issues.jboss.org/browse/CDI-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13315001#comment-13315001 ] 

Antoine Sabot-Durand commented on CDI-643:
------------------------------------------

In my remembering, this problem is for advanced CDI meta-data ({{BeanAttributesconfigurator}}, {{InjectionPointconfigurator}}, etc..). AnnotatedType is not bound to a container lifecycle, it's everywehere and usable at runtime (to create {{InjectionTarget}} for instance).
  

> Provide a way to easily configure injection point of an InjectionTarget
> -----------------------------------------------------------------------
>
>                 Key: CDI-643
>                 URL: https://issues.jboss.org/browse/CDI-643
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Antoine Sabot-Durand
>             Fix For: 2.0 .Final
>
>
> Creating an {{InjectionTarget}} requires an AnnotatedType. It is often convenient to create a custom {{AnnotatedType}} to add injection points in it (i.e. add {{@Inject}} on fields or methods).
> We Introduced the {{AnnotatedTypeConfigurator}} helper but didn't provide a way to use it to create an {{InjectionTarget}}.
> I think we should add {{BeanManager.createAnnotatedTypeConfigurator()}} to solve this and perhaps simplify other places where we could use an {{AnnotatedTypeConfigurator}} like in CDI-642



--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the cdi-dev mailing list