infinispan/infinispan — pull request #1288 by vblagoje (2012-09-05 12:07:10+00:00)
Title: ISPN-2181 - Allow to inject the current cache into Mapper/Reducer/Callable objects

Master only. This one warrants a thorough review and discussion. It resolves https://issues.jboss.org/browse/ISPN-2181 However, I have not enabled injection into Reducer but Mapper only. The reason being is that we allow injection of input cache, cache that holds input data for Mapper not Reducer. I thought that having input cache for Mapper also available in Reducer would just cause problems and confuse users. Therefore, annotating Cache field with @Inject and @Input for Callable and Mapper would inject the right input cache as this JIRA requests.