You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrew Mashenkov (JIRA)" <ji...@apache.org> on 2016/08/23 15:01:22 UTC

[jira] [Comment Edited] (IGNITE-2560) Support injections in entry processors

    [ https://issues.apache.org/jira/browse/IGNITE-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432965#comment-15432965 ] 

Andrew Mashenkov edited comment on IGNITE-2560 at 8/23/16 3:01 PM:
-------------------------------------------------------------------

Hi, Semen
{quote}
I can't find test for invokeAll(Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args)', could you please point me where it was added?
{quote}
See class _GridCacheAbstractFullApiSelfTest_. Method _testTransformResourceInjection_ calls _doTransformResourceInjection_ with cache and cache-with-async. Method _doTransformResourceInjection_ make checks with _invoke_, _invokeAll_, _invokeAll (Map ...)_.

{quote}
 in GridLocalAtomicCache let's do not use wrapper at all, instead just call GridResourceProcessor.inject on entry processor
{quote}
Please, take a look at method _invokeAllAsync_ in GridLocalAtomicCache class. Method signature tells it throws *no* exceptions, but 
_resourceProcessor.inject(..)_ does. Whether exception is being processed correctly?


was (Author: amashenkov):
Hi, Semen
{quote}
I can't find test for invokeAll(Map<? extends K, ? extends EntryProcessor<K, V, T>> map, Object... args)', could you please point me where it was added?
{quote}
See class _GridCacheAbstractFullApiSelfTest_. Method _testTransformResourceInjection_ calls _doTransformResourceInjection_ with cache and cache-with-async. Method _doTransformResourceInjection_ make checks with _invoke_, _invokeAll_, _invokeAll (Map ...)_.

{quote}
 in GridLocalAtomicCache let's do not use wrapper at all, instead just call GridResourceProcessor.inject on entry processor
{quote}
Please, take a look on method _invokeAllAsync_ in GridLocalAtomicCache class. Method signature tells it throws *no* exceptions, but 
_resourceProcessor.inject(..)_ does. Whether exception is being processed correctly?

> Support injections in entry processors
> --------------------------------------
>
>                 Key: IGNITE-2560
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2560
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>            Reporter: Valentin Kulichenko
>            Assignee: Andrew Mashenkov
>             Fix For: 1.8
>
>
> Currently resources are not injected in entry processor, which is not consistent with other functionality, like closures, jobs, listeners, etc.
> To avoid performance degradation we should introspect the class only once, cache this information and do not try to inject if there are no annotations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)