XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 2.16.1.Final
    • 2.14.0.Final
    • Java EE
    • None

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

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

      Would add to an existing class the following code :

         @Inject
         private Logger logger;
      

      A qualifier could be added with:

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

      Would add to an existing class the following code :

         @Inject @Debug @Trace
         private Logger logger;
      

              agoncal Antonio Goncalves (Inactive)
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: