cz.cuni.utils
Class DirectoryClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by cz.cuni.utils.DirectoryClassLoader
Direct Known Subclasses:
PogamutPlatformClassLoader

public class DirectoryClassLoader
extends java.net.URLClassLoader

Loads classes from all *.jar files in directory.


Constructor Summary
DirectoryClassLoader(java.io.File directory)
          Creates a new instance of DirectoryClassLoader
 
Method Summary
(package private) static java.net.URL[] dirToJarUrls(java.io.File dir)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryClassLoader

public DirectoryClassLoader(java.io.File directory)
                     throws java.io.IOException
Creates a new instance of DirectoryClassLoader

Throws:
java.io.IOException
Method Detail

dirToJarUrls

static java.net.URL[] dirToJarUrls(java.io.File dir)
                            throws java.io.IOException
Throws:
java.io.IOException