-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
None
Currently all class: JavaDelegates will be created via Class.newInstance.
But when using CDI or Spring we might use managed beans instead new instances.
By introducing an AtrifactFactory SPI which has a method to getInstance and destroyInstance we can switch out the default behaviour for utilizing the BeanManager if someone uses the cdi-engine and the BeanFactory in the Spring specific implementation.
Both impls might fall back to newInstance if there is no managed bean for this class.