public class ClassLoaderSorter extends Object
This is required to create a dynamic proxy when the interfaces it implements are not in the same class loader.
TODO: The current implementation assumes that all classes are in the same ClassLoader hierarchy but doesn't validate this. It should.
Constructor and Description |
---|
ClassLoaderSorter() |
public ClassLoader getTopLoader(Class<?>[] forClasses)
forClasses
- The Classes.