[forge-issues] [JBoss JIRA] (FORGE-2226) Being able to add a CDI injection point
Antonio Goncalves (JIRA)
issues at jboss.org
Sat Feb 7 13:13:48 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 --accessType private
{code}
Would add to an existing class the following code :
{code}
@Inject
private Logger logger;
{code}
Private is the default access type and can be omited. 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}
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 --accessType private
{code}
Would add to an existing class the following code :
{code}
@Inject
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
> 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 --accessType private
> {code}
> Would add to an existing class the following code :
> {code}
> @Inject
> private Logger logger;
> {code}
> Private is the default access type and can be omited. 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}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the forge-issues
mailing list