You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Aaron Anderson (Jira)" <ji...@apache.org> on 2021/03/25 18:43:00 UTC

[jira] [Created] (IGNITE-14420) Support pluggable dependency injection frameworks

Aaron Anderson created IGNITE-14420:
---------------------------------------

             Summary: Support pluggable dependency injection frameworks
                 Key: IGNITE-14420
                 URL: https://issues.apache.org/jira/browse/IGNITE-14420
             Project: Ignite
          Issue Type: Wish
    Affects Versions: 3.0.0-alpha1
            Reporter: Aaron Anderson


I love Ignite and I am excited about the upcoming 3.0 version.

Currently I prefer to use OpenWebbeans CDI 2.0 over the integrated Spring Framework in Ignite for dependency injections. In the current version of Ignite it is not possible to build an extension that has access to the kernel functionality where job classes are instanciated and injected.

To work around this limitation I created my own callable job base class that my compute jobs extend from and the CDI injection occurs there: [https://github.com/aaronanderson/ODE-X/blob/3fb76fdfec5b3333ba6461832f6fe210d808c553/spi/src/main/java/org/apache/ode/spi/CDICallable.java]

I would like for the new Ignite 3.0 version to directly support CDI or allow modular extensions to interface with the compute job lifecycle such as instanciation, injection, interception, and destruction so that compute jobs can be augmented by third party frameworks running in the Ignite node before they are invoked. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)