[
https://issues.jboss.org/browse/FORGE-2226?page=com.atlassian.jira.plugin...
]
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)