-
Sub-task
-
Resolution: Unresolved
-
Major
-
2.12.1.Final
-
None
It would be good to have a command to add a CDI producer field to an existing class. A simple command such as :
cdi-add-producer-field --named em --type javax.persistence.EntityManager
Would generate :
public class DatabaseProducer { @Produces private EntityManager em; }
Then, we can have more attributes :
cdi-add-producer-field --named em --type javax.persistence.EntityManager --qualifiers Production CustomerDB --alternative=true --scoped Request --withNamed=true
public class DatabaseProducer { @Produces @Production @CustomerDB @Alternative @RequestScoped @Named private EntityManager em; }
- is related to
-
FORGE-2225 Being able to add a new CDI producer method to an existing class
- Closed