public class ClassLoading extends Object
| Constructor and Description |
|---|
ClassLoading() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
forName(String type,
Class<?> callerClass)
Loads the class using the ClassLoader corresponding to the caller class first,
if class not found we try with Thread's context ClassLoader (TCCL).
|
static Class<?> |
forName(String type,
Object callerObject)
Loads the class using the ClassLoader corresponding to the caller object first,
if class not found we try with Thread's context ClassLoader (TCCL).
|
static Class<?> |
loadClass(String type,
Class<?> callerClass)
Loads the class using the ClassLoader corresponding to the caller class first,
if class not found we try with Thread's context ClassLoader (TCCL).
|
static Class<?> |
loadClass(String type,
Object callerObject)
Loads the class using the ClassLoader corresponding to the caller object first,
if class not found we try with Thread's context ClassLoader (TCCL).
|
public static Class<?> forName(String type, Object callerObject) throws ClassNotFoundException
type - FQN of class to loadcallerObject - the object from which we want to load the classClassNotFoundExceptionpublic static Class<?> forName(String type, Class<?> callerClass) throws ClassNotFoundException
type - FQN of class to loadcallerClass - the class from which we want to load the classClassNotFoundExceptionpublic static Class<?> loadClass(String type, Object callerObject) throws ClassNotFoundException
type - FQN of class to loadcallerObject - the object from which we want to load the classClassNotFoundExceptionpublic static Class<?> loadClass(String type, Class<?> callerClass) throws ClassNotFoundException
type - FQN of class to loadcallerClass - the class from which we want to load the classClassNotFoundExceptionCopyright © 2017 eXo Platform SAS. All Rights Reserved.