orca.util
Class ChangeClasspath

java.lang.Object
  extended by orca.util.ChangeClasspath

public class ChangeClasspath
extends java.lang.Object

Utility class to elements to the classpath at runtime.


Constructor Summary
ChangeClasspath()
           
 
Method Summary
static void addFile(java.lang.ClassLoader loader, java.io.File file)
          Adds a path to the specified class loader.
static void addFile(java.io.File file)
          Adds a path the current class loader.
static void addFile(java.lang.String path)
          Adds a path to the current class loader.
static void addURL(java.lang.ClassLoader loader, java.net.URL url)
          Adds a URL to the given class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeClasspath

public ChangeClasspath()
Method Detail

addFile

public static void addFile(java.lang.String path)
                    throws java.lang.Exception
Adds a path to the current class loader.

Parameters:
path - path to add
Throws:
java.lang.Exception

addFile

public static void addFile(java.lang.ClassLoader loader,
                           java.io.File file)
                    throws java.lang.Exception
Adds a path to the specified class loader.

Parameters:
loader - class loader to add the path to
file - file representing the path
Throws:
java.lang.Exception

addFile

public static void addFile(java.io.File file)
                    throws java.lang.Exception
Adds a path the current class loader.

Parameters:
file - file representing the path
Throws:
java.lang.Exception

addURL

public static void addURL(java.lang.ClassLoader loader,
                          java.net.URL url)
                   throws java.lang.Exception
Adds a URL to the given class loader.

Parameters:
loader - class loader
url - url to add
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.