[forge-issues] [JBoss JIRA] (FORGE-2226) Being able to add a CDI injection point

Antonio Goncalves (JIRA) issues at jboss.org
Sat Mar 7 13:31:18 EST 2015


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

Antonio Goncalves updated FORGE-2226:
-------------------------------------
    Description: 
It would be useful to have a command to add a new CDI injection point to an existing bean. A command such as : 

{code}
cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger 
{code}

Would add to an existing class the following code :

{code}
   @Inject
   private Logger logger;
{code}

A qualifier could be added with:

{code}
cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger --qualifiers Debug Trace
{code}

Would add to an existing class the following code :

{code}
   @Inject @Debug @Trace
   private Logger logger;
{code}



  was:
It would be useful to have a command to add a new CDI injection point to an existing bean. A command such as : 

{code}
cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger 
{code}

Would add to an existing class the following code :

{code}
   @Inject
   private Logger logger;
{code}

A qualifier could be added with:

{code}
cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger --qualifier Debug
{code}

Would add to an existing class the following code :

{code}
   @Inject @Debug
   private Logger logger;
{code}





> Being able to add a CDI injection point
> ---------------------------------------
>
>                 Key: FORGE-2226
>                 URL: https://issues.jboss.org/browse/FORGE-2226
>             Project: Forge
>          Issue Type: Sub-task
>          Components: Java EE
>    Affects Versions: 2.14.0.Final
>            Reporter: Antonio Goncalves
>            Assignee: Antonio Goncalves
>             Fix For: 2.x Future
>
>
> It would be useful to have a command to add a new CDI injection point to an existing bean. A command such as : 
> {code}
> cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger 
> {code}
> Would add to an existing class the following code :
> {code}
>    @Inject
>    private Logger logger;
> {code}
> A qualifier could be added with:
> {code}
> cdi-add-injection-point --named logger --type org.apache.logging.log4j.Logger --qualifiers Debug Trace
> {code}
> Would add to an existing class the following code :
> {code}
>    @Inject @Debug @Trace
>    private Logger logger;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the forge-issues mailing list