public class LoaderManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addClassLoader(ClassLoader loader,
List<String> jarFiles)
添加classloader
|
static void |
clear() |
static Class<?> |
getClass(String className)
根据class名获取class
|
static ClassLoader |
getLoader(String className)
根据class名获取该class的classloader
|
static List<String> |
getLoaderFiles(ClassLoader loader) |
static void |
removeClassLoader(ClassLoader loader)
移除一个classloader
|
public static ClassLoader getLoader(String className) throws ClassNotFoundException
className
- ClassNotFoundException
public static void removeClassLoader(ClassLoader loader)
loader
- public static Class<?> getClass(String className) throws ClassNotFoundException
className
- ClassNotFoundException
public static void addClassLoader(ClassLoader loader, List<String> jarFiles)
loader
- public static List<String> getLoaderFiles(ClassLoader loader)
public static void clear()
Copyright © 2006–2018 TinyGroup. All rights reserved.