[forge-issues] [JBoss JIRA] (FORGE-2078) Being able to create a new CDI decorator

Antonio Goncalves (JIRA) issues at jboss.org
Sat Oct 18 18:40:37 EDT 2014


     [ https://issues.jboss.org/browse/FORGE-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Goncalves updated FORGE-2078:
-------------------------------------
    Description: 
It would be good to have a command to generate a CDI decorator. A simple command such as :

{code}
cdi-new-decorator --named LargeTransactionDecorator --delegate Account
{code}

Would generate :  

{code}
@Decorator
public abstract class LargeTransactionDecorator implements Account {

    @Inject @Delegate Account delegate;

}
{code}


  was:
It would be good to have a command to generate a CDI decorator. A simple command such as :

{code}
cdi-new-decorator --named LargeTransactionDecorator --implements Account
{code}

Would generate :  

{code}
@Decorator
public abstract class LargeTransactionDecorator implements Account {

    @Inject @Delegate Account delegate;

}
{code}




> Being able to create a new CDI decorator
> ----------------------------------------
>
>                 Key: FORGE-2078
>                 URL: https://issues.jboss.org/browse/FORGE-2078
>             Project: Forge
>          Issue Type: Sub-task
>          Components: Java EE
>    Affects Versions: 2.12.1.Final
>            Reporter: Antonio Goncalves
>            Assignee: Antonio Goncalves
>             Fix For: 2.x Future
>
>
> It would be good to have a command to generate a CDI decorator. A simple command such as :
> {code}
> cdi-new-decorator --named LargeTransactionDecorator --delegate Account
> {code}
> Would generate :  
> {code}
> @Decorator
> public abstract class LargeTransactionDecorator implements Account {
>     @Inject @Delegate Account delegate;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list