com.sun.grizzly.util
Class ClassLoaderUtil

java.lang.Object
  extended by com.sun.grizzly.util.ClassLoaderUtil

public class ClassLoaderUtil
extends Object

Simple Classloader utility.

Author:
Jeanfrancois Arcand

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderUtil

public ClassLoaderUtil()
Method Detail

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 directory
ClassLoader - 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.