[infinispan-dev] Distributed Executors in write mode, need reference to Cache

Vladimir Blagojevic vblagoje at redhat.com
Wed Dec 28 11:23:04 EST 2011


Pete,

Would you have a quick look at 
https://github.com/vblagoje/infinispan/compare/master...t_1636_m as I 
think this is what needs to be done! Still a bit rough phase but I would 
like to check with you before proceeding further!

Regards,
Vladimir

On 11-12-23 12:18 PM, Pete Muir wrote:
> Yep. This is what CDI calls an "injection target" (an object which is the target for injection). So, what i would suggest you do is add an SPI to the map/reduce code that has callbacks which can be hooked into at the appropriate point by CDI or something else. So you would want a callback for inject(), postConstruct() and preDestroy(). You would provide a default impl for plain old java, which were basically no-ops, and then use e.g. the service loader to load other implementations, and call back to them. You then call this SPI at the relevant points in your code.
>
> Does that make any more sense?
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev



More information about the infinispan-dev mailing list