On 12 mai 2011, at 11:18, Dan Berindei wrote:
That seems like a lot of overhead to me, and forcing the user to
provide the classloader doesn't seem that bad in comparison. Perhaps
we should use something other than a thread-local for this though, so
that users can do a onto the result of a
cacheManager.getCache("A").usingClassLoader(A.class) and never have to
provide the classloader again.
Note that I don't think it works in the case you mentioned earlier ie a ArrayList with
classes from many different bundles.