public final class Resources extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
classForName(String className)
Loads a class
|
static ClassLoader |
getDefaultClassLoader()
Returns the default classloader (may be null).
|
static void |
setDefaultClassLoader(ClassLoader defaultClassLoader)
Sets the default classloader
|
public static ClassLoader getDefaultClassLoader()
public static void setDefaultClassLoader(ClassLoader defaultClassLoader)
defaultClassLoader - - the new default ClassLoaderpublic static Class<?> classForName(String className) throws ClassNotFoundException
className - - the class to loadClassNotFoundException - If the class cannot be found (duh!)Copyright © 2013–2018 Alibaba Group. All rights reserved.