Details

    • Sub-task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2.14.0.Final
    • 2.16.1.Final
    • Java EE
    • None

    Description

      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;
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: