Dependency resource injection with OpenWebBeans CDI instead of Spring

classic Classic list List threaded Threaded
2 messages Options
Aaron Anderson Aaron Anderson
Reply | Threaded
Open this post in threaded view
|

Dependency resource injection with OpenWebBeans CDI instead of Spring

Hi,

I would like to configure Ignite to use OpenWebBeans and CDI to inject fields into deserialized IgniteRunnables instead of using Spring. It looks like org.apache.ignite.internal.processors.resource.GridResourceInjector is available for this purpose. Is there an easy way to register a custom implementation of this interface with Ignite? 

Additionally, do fields intended to be injection points need to use the transient keyword so they are not inadvertently serialized or is there another way to handle that?

Thanks,

Aaron
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Dependency resource injection with OpenWebBeans CDI instead of Spring

Hello!

Judging from the .internal. designation of this interface, it doesn't look
like you can meaningfully extend it in your code.

Regards,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/