A small ClassLoader change proposal
Jevgeni Kabanov
ekabanov at gmail.com
Thu Sep 16 13:44:17 UTC 2010
On 16.09.2010, at 16:33, Rémi Forax wrote:
> So you want to create a classloader local like there is a thread local.
>
> You can subclass ClassLoader and put your field in the newly created class.
> Why do you need to put your localMap in java.lang.Classloader ?
Because I want it to work with any class loader, not just the ones created by me. In a typical Java EE app you have a lot of custom class loaders created by the container, frameworks and the app. I want to be able to hold a reference to an object, without having to think about what happens when that app is redeployed.
JK
More information about the core-libs-dev
mailing list