I do not understand the subtle distinction..
You have delivered the bytes of the class
themselves through the class loader..
But you want to avoid creating an actual
Class with the bytes[].. Why?
* Yes, yes.. I noticed that '...*before* loading?'
bit in the subject *after* I had posted, it
pays to ensure every key word of a subject is
mentioned in the body as some people ignore
the subject and others miss it.
Sorry!
I thought the statement that I wanted to "pass
interfaces to another class loader" covered it. The
normal ClassLoader implementation means that a
ClassLoader won't load a class if it's already been
loaded (I think). I want interfaces to be shared
between namespaces by having them loaded by a parent
ClassLoader, while classes found by the current class
loader are loaded immediately - effectively isolating
them within the namespace defined by that class loader.
Does that make sense now? I have a hack that works
by putting all 'shared' interfaces into a known location,
but that's really a pretty bad hack. I'm looking for
better alternatives.