org.apache.camel.guice.jndi.internal
Class Classes
java.lang.Object
org.apache.camel.guice.jndi.internal.Classes
public final class Classes
- extends Object
Method Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadClass
public static Class<?> loadClass(String name,
ClassLoader loader)
throws ClassNotFoundException
- Attempts to load the class of the given name from the thread context
class loader first then the given class loader second
- Parameters:
name
- the name of the classloader
- the class loader to use if the thread context class loader
cannot find the class
- Returns:
- the class loaded
- Throws:
ClassNotFoundException
- if the class could not be found
Apache Camel