public class ClassLoaderUtils
extends java.lang.Object
Constructor and Description |
---|
ClassLoaderUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.ClassLoader |
guessClassLoader(java.lang.ClassLoader candidate)
Guess the most appropriate ClassLoader.
|
public static java.lang.ClassLoader guessClassLoader(java.lang.ClassLoader candidate)
This implementation chooses either the candidate ClassLoader, or the current context ClassLoader, or the system ClassLoader, whichever is the child ClassLoader of the other two.
If case no parent-child relationship is present, context ClassLoader takes precedence, then the candidate class loader, then the system class loader.
candidate
- the candidate ClassLoader.