org.apache.camel.guice.jndi.internal
Class Classes

java.lang.Object
  extended by 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
 

Method Detail

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 class
loader - 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