You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Sergey Evdokimov (JIRA)" <ji...@apache.org> on 2015/03/12 16:56:38 UTC

[jira] [Created] (IGNITE-478) Refactoring GridResourceProcessor / GridResourceIoc

Sergey Evdokimov created IGNITE-478:
---------------------------------------

             Summary: Refactoring GridResourceProcessor / GridResourceIoc
                 Key: IGNITE-478
                 URL: https://issues.apache.org/jira/browse/IGNITE-478
             Project: Ignite
          Issue Type: Improvement
            Reporter: Sergey Evdokimov
            Assignee: Sergey Evdokimov
             Fix For: sprint-3


1.) When Ignite injects resources, it injects recursively to field value if field value is IgniteClosure, Runnable or Callable. It's not clear and it's not logical, annotation @InjectRecursively should be added.

2.) GridResourceIoc works slowly if recursively injection is needed, because GridResourceIoc#isAnnotationPresent() always returns 'true' in this case.

3.) Code may be simplified by merging GridResourceIoc#fieldCache, GridResourceIoc#mtdCache, GridResourceIoc#skipCache and GridResourceIoc#annCache to one map.



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