com.sun.grizzly.util
Class ClassLoaderUtil
java.lang.Object
com.sun.grizzly.util.ClassLoaderUtil
public class ClassLoaderUtil
- extends Object
Simple Classloader utility.
- Author:
- Jeanfrancois Arcand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderUtil
public ClassLoaderUtil()
createClassloader
public static final ClassLoader createClassloader(File libDir,
ClassLoader cl)
throws IOException
- Create a class loader that can load classes from the specified
file directory. The file directory must contains .jar ot .zip
- Parameters:
file
- a directoryClassLoader
- the parent classloader, or null if none.
- Returns:
- A Classloader that can load classes from a directory that
contains jar and zip files.
- Throws:
IOException
Copyright © 2008 SUN Microsystems. All Rights Reserved.