]
George Gastaldi commented on FORGE-2382:
----------------------------------------
{{--serializable}} would be better, no?
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: Feature Request
Components: Java EE
Affects Versions: 2.16.2.Final
Reporter: Antonio Goncalves
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}