get rid of reflection in ehcache TIM
------------------------------------

                 Key: CDV-760
                 URL: https://jira.terracotta.org/jira//browse/CDV-760
             Project: Community Development
          Issue Type: Bug
          Components: Byte Code Transform, Integration Modules
    Affects Versions: 2.6-stable4
            Reporter: Tim Eck
            Assignee: Issue Review Board


There seem to be a few places in the ehcache TIMs where reflection is used 
needlessly. The methods that are being called are added with instrumentation, 
but that doesn't mean they need to be called reflectively. Some different 
things that could be done are to add an interface with the new methods 
(preferred), or generate the calls with instrumentation as well 

CacheTC.put() -- every time an element is put in the cache, a reflective call 
is made to associate the element with the cache

EhcacheElementAdapter.java adds reflective calls to let the cache know when the 
TTL or timeToIdle are adjusted on the elements themselves.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to