]
Antonio Goncalves updated FORGE-2226:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
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}