public final class Classes extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
loadClass(String name,
ClassLoader loader)
Attempts to load the class of the given name from the thread context
class loader first then the given class loader second
|
public static Class<?> loadClass(String name, ClassLoader loader) throws ClassNotFoundException
name
- the name of the classloader
- the class loader to use if the thread context class loader
cannot find the classClassNotFoundException
- if the class could not be foundApache Camel