public class LoadClass extends Object
|Modifier and Type||Method and Description|
public static Class forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException
Classobject 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 class
initialize- whether the class must be initialized
loader- class loader from which the class must be loaded
LinkageError- if the linkage fails
ExceptionInInitializerError- if the initialization provoked by this method fails
ClassNotFoundException- if the class cannot be located by the specified class loader
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.