net.sf.jeters.core
Class ComponentClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.sf.jeters.core.ComponentClassLoader

public class ComponentClassLoader
extends java.net.URLClassLoader

ClassLoader used for getting classes from the component folder


Constructor Summary
ComponentClassLoader(java.io.File componentDirectory)
          constructor
 
Method Summary
 void addJarsToClasspath()
          adds all jars in the componentDirectory to the loader's classpath
 void addToClasspath(java.io.File file)
          adds a file/directory to the loader's classpath
 
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

ComponentClassLoader

public ComponentClassLoader(java.io.File componentDirectory)
                     throws java.net.MalformedURLException
constructor

Parameters:
componentDirectory - the component directory, must not be null
Throws:
java.net.MalformedURLException
Method Detail

addToClasspath

public void addToClasspath(java.io.File file)
                    throws java.net.MalformedURLException
adds a file/directory to the loader's classpath

Parameters:
file - the file/directory to add
Throws:
java.net.MalformedURLException

addJarsToClasspath

public void addJarsToClasspath()
adds all jars in the componentDirectory to the loader's classpath