[forge-issues] [JBoss JIRA] (FORGE-2082) Being able to add a new CDI event observer to an existing class
Antonio Goncalves (JIRA)
issues at jboss.org
Mon Oct 20 11:04:35 EDT 2014
[ https://issues.jboss.org/browse/FORGE-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Goncalves updated FORGE-2082:
-------------------------------------
Description:
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}
was:
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 po --type PurchaseOrder
{code}
Would add to an existing class the following code :
{code}
public void observePurchaseOrder(@Observes PurchaseOrder po)
{
}
{code}
> 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
> Fix For: 2.x Future
>
>
> 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}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the forge-issues
mailing list