public class ClassUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.ClassLoader |
getClassLoader(java.lang.Class<?> clazz)
Detect the right
ClassLoader. |
static java.lang.ClassLoader |
getClassLoader(java.lang.Object obj)
Detect the right
ClassLoader. |
public static java.lang.ClassLoader getClassLoader(java.lang.Object obj)
ClassLoader.
The lookup order is determined by:
ClassLoader of the current ThreadClassLoader of the given Object 'obj'ClassLoader of this very ClassUtils classobj - If not null it may get used to detect the ClassLoader.ClassLoader which should get used to create new instancespublic static java.lang.ClassLoader getClassLoader(java.lang.Class<?> clazz)
ClassLoader.
The lookup order is determined by:
ClassLoader of the current ThreadClassLoader of the given Object 'obj'ClassLoader of this very ClassUtils classclazz - If not null it may get used to detect the ClassLoader.ClassLoader which should get used to create new instancesCopyright © 2011-2015. All Rights Reserved.