]
Edoardo Vacchi updated DROOLS-3923:
-----------------------------------
Story Points: 3
(C)DI detection should be more reliable/standard for codegen
------------------------------------------------------------
Key: DROOLS-3923
URL:
https://issues.jboss.org/browse/DROOLS-3923
Project: Drools
Issue Type: Bug
Reporter: Edoardo Vacchi
Assignee: Edoardo Vacchi
Priority: Major
Labels: drools-core, submarine
we are currently doing {{ try { Class.forName("...ApplicationScoped") } }}
which is
(1) pretty hackish (2) won't work in Maven because maven's ClassPath is not the
same of the target application
We should rather use a config param or any better way to detect if we're going to use
DI. Currently we have added a config param + "auto detect" using the technique
above (in maven only the config param works) but auto-detect should be better.
Besides ApplicationScoped only work for CDI, while JSR-330 @Inject is independent from
CDI so using ApplicationScoped as a signal is too limited.