]
George Gastaldi reassigned FORGE-2086:
--------------------------------------
Assignee: George Gastaldi
Being able to create a new CDI extension
----------------------------------------
Key: FORGE-2086
URL:
https://issues.jboss.org/browse/FORGE-2086
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.1.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.x Future
It would be good to be able to create a new CDI extension. A basic command could just be
:
{code}
cdi-new-extension --named MyExtension
{code}
This will generate the following code as well as enabling :
{code}
class MyExtension implements Extension {
}
{code}
The extension could be enabled with just an attribute :
{code}
cdi-new-extension --named MyExtension --enable=true
{code}
This will create the {{META-INF/services/javax.enterprise.inject.spi.Extension}} file and
would declare the extension within the file.