-
Sub-task
-
Resolution: Unresolved
-
Major
-
2.12.1.Final
-
None
It would be useful to have a command to add a new CDI event producer to an existing class. A command such as :
cdi-add-event-producer --named firePurchaseOrder --type PurchaseOrder
Would add to an existing class the following code :
@Inject private Event<PurchaseOrder> eventPurchaseOrder; public void firePurchaseOrder() { PurchaseOrder purchaseOrder = new PurchaseOrder(); event.fire(order); }
Adding qualifiers :
cdi-add-event-producer --named firePurchaseOrder --type PurchaseOrder --qualifiers MyQualif MySecondQualif
@Inject @MyQualif @MySecondQualif private Event<PurchaseOrder> eventPurchaseOrder; public void firePurchaseOrder() { PurchaseOrder purchaseOrder = new PurchaseOrder(); event.fire(order); }
- is related to
-
FORGE-2082 Being able to add a new CDI event observer to an existing class
- Closed