Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2082

Being able to add a new CDI event observer to an existing class

    XMLWordPrintable

Details

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

    Description

      It would be useful to have a command to add a new CDI event observer to an existing class. A command such as :

      cdi-add-event-observer --named observePurchaseOrder --type PurchaseOrder
      

      Would add to an existing class the following code :

         public void observePurchaseOrder(@Observes PurchaseOrder purchaseOrder)
         {
      
         }
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ggastald rhn-support-ggastald
              agoncal agoncal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: