]
Antonio Goncalves reassigned FORGE-2382:
----------------------------------------
Assignee: Antonio Goncalves
Add a isSerializable parameter to the cdi-new-bean command
----------------------------------------------------------
Key: FORGE-2382
URL:
https://issues.jboss.org/browse/FORGE-2382
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.16.2.Final
Reporter: Antonio Goncalves
Assignee: Antonio Goncalves
Labels: starter
Fix For: 2.x Future
Sometimes it's useful/mandatory to have CDI beans that are serializable. At the
moment the {{cdi-new-bean}} command doesn't allow us to do that easily (except using
scopes that are not always needed). A simple boolean {{isSerializable}} could do :
{code}
cdi-new-bean --named LoggerProducer --isSerializable
{code}
This would generate :
{code}
public class LoggerProducer implements Serializable
{
}
{code}