]
George Gastaldi closed FORGE-2082.
----------------------------------
Resolution: Done
Being able to add a new CDI event observer to an existing class
---------------------------------------------------------------
Key: FORGE-2082
URL:
https://issues.jboss.org/browse/FORGE-2082
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.1.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.16.1.Final
It would be useful to have a command to add a new CDI event observer to an existing
class. A command such as :
{code}
cdi-add-event-observer --named observePurchaseOrder --type PurchaseOrder
{code}
Would add to an existing class the following code :
{code}
public void observePurchaseOrder(@Observes PurchaseOrder purchaseOrder)
{
}
{code}