-
1. Re: Caching in BaseClassLoaderDomain.findLoaderInExports
adrian.brock Aug 24, 2007 8:52 AM (in response to alesj)I don't understand what point you are trying to make?
The idea of the code above is that if any of the classloaders looked at doesn't
allow caching or blacklisting then you can't cache or blacklist at the global level.
e.g.
The classloaders could be C1 (canCache=false, canBlacklist=false), C2
On first attempt:
C1 == not found
C2 == found
But C1 says don't cache the result returned from C2 because I might be able
to return "found" in future.
Or alternatively
C1 == not found
C2 == not found
but C1 says don't blacklist (cache misses) for the same reason. -
2. Re: Caching in BaseClassLoaderDomain.findLoaderInExports
alesj Aug 24, 2007 9:01 AM (in response to alesj)Aha, ok - just didn't see this concept/idea.
But then the order matters. :-)
e.g. if C2(canCache=true, canBlacklist=true) comes before your's C1?
and C1 would eventually be able to find it in the future -
3. Re: Caching in BaseClassLoaderDomain.findLoaderInExports
adrian.brock Aug 24, 2007 10:24 AM (in response to alesj)For the canCache yes.
If C2 were first and it were found, it would be cached.
It wouldn't blacklist at the global level because C1 says not to.