public class LoadClass extends Object
| Modifier and Type | Method and Description | 
|---|---|
static Class | 
forName(String name,
       boolean initialize,
       ClassLoader loader)
Returns the  
Class object associated with the class or
 interface with the given string name, using the given class loader. | 
public static Class forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException
Class object associated with the class or
 interface with the given string name, using the given class loader.
 This method calls Class.forName(String,boolean,ClassLoader),
 from a Thread dedicated for each
 ClassLoader, avoiding contention for ClassLoader locks by thread
 confinement.  This provides a significant scalability benefit for
 JERI, without needing to resort to parallel ClassLoader locks, which
 isn't part of the Java specification.
 If loader is null, thread confinement is not used.name - fully qualified name of the desired classinitialize - whether the class must be initializedloader - class loader from which the class must be loadedLinkageError - if the linkage failsExceptionInInitializerError - if the initialization provoked
            by this method failsClassNotFoundException - if the class cannot be located by
            the specified class loaderClass