nl.toolforge.karma.launcher
Class KarmaClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended bynl.toolforge.karma.launcher.KarmaClassLoader

public class KarmaClassLoader
extends java.net.URLClassLoader

Author:
oosterom

Nested Class Summary
 
Nested classes inherited from class java.lang.ClassLoader
 
Field Summary
 
Fields inherited from class java.lang.ClassLoader
 
Constructor Summary
(package private) KarmaClassLoader(java.lang.ClassLoader parentLoader)
           
 
Method Summary
 void addClassPathEntry(java.io.File classPathEntry)
          Add a file to the classpath of the classloader.
 void addClassPathEntry(java.lang.String classPathEntry)
          Overloaded version of addRepository(File repository)
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, 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

KarmaClassLoader

KarmaClassLoader(java.lang.ClassLoader parentLoader)
Method Detail

addClassPathEntry

public void addClassPathEntry(java.lang.String classPathEntry)
                       throws java.io.FileNotFoundException
Overloaded version of addRepository(File repository)

Throws:
java.io.FileNotFoundException

addClassPathEntry

public void addClassPathEntry(java.io.File classPathEntry)
                       throws java.io.FileNotFoundException
Add a file to the classpath of the classloader. If the file is a regular file and ends with ".jar/.zip" it is added to the classpath. If the file is a directory the directory is added to the classpath. If the directory contains jar/zip files, also the jar/zip files are added to the classpath

Parameters:
classPathEntry - The file to be added to the classpath
Throws:
java.io.FileNotFoundException


Copyright © 2002-2006 Toolforge. All Rights Reserved.