public class ClassUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
forName(java.lang.String className)
Similar to
Class.forName(java.lang.String) , but attempts to load
through the thread context class loader. |
public static java.lang.Class forName(java.lang.String className) throws java.lang.ClassNotFoundException
Class.forName(java.lang.String)
, but attempts to load
through the thread context class loader. Only if thread context class
loader is inaccessible, or it can't find the class will it attempt to
fall back to the class loader that loads the FreeMarker classes.java.lang.ClassNotFoundException