|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.util.ClassLoaderUtil
public class ClassLoaderUtil
Simple Classloader utility.
| Constructor Summary | |
|---|---|
ClassLoaderUtil()
|
|
| Method Summary | |
|---|---|
static ClassLoader |
createClassloader(File libDir,
ClassLoader cl)
Create a class loader that can load classes from the specified file directory. |
static Object |
load(String clazzName)
Load a class using the current {link Thread#getContextClassLoader} |
static Object |
load(String clazzName,
ClassLoader classLoader)
Load a class using the provided Classloader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderUtil()
| Method Detail |
|---|
public static final ClassLoader createClassloader(File libDir,
ClassLoader cl)
throws IOException
file - a directoryClassLoader - the parent classloader, or null if none.
IOExceptionpublic static Object load(String clazzName)
clazzName - The name of the class you want to load.
public static Object load(String clazzName,
ClassLoader classLoader)
Classloader
clazzName - The name of the class you want to load.classLoader - A classloader to use for loading a class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||