org.openejb.util
Class ClasspathUtils

java.lang.Object
  |
  +--org.openejb.util.ClasspathUtils

public class ClasspathUtils
extends java.lang.Object

Author:
David Blevins

Constructor Summary
ClasspathUtils()
           
 
Method Summary
static void addJarsToPath(java.io.File dir, java.net.URLClassLoader loader)
          Appends the jars and zips in the dir to the classpath of the classloader passed in.
static void addJarsToPath(java.lang.String dir, java.net.URLClassLoader loader)
          Appends the jars and zips in the dir to the classpath of the classloader passed in.
static void addJarsToSystemPath(java.io.File dir)
          Appends the jars and zips in the dir to the classpath of the classloader passed in.
static void addJarsToSystemPath(java.lang.String dir)
          Appends the jars and zips in the dir to the classpath of the classloader passed in.
static void addJarToPath(java.io.File jar, java.net.URLClassLoader loader)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToPath(java.lang.String jar, java.net.URLClassLoader loader)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToPath(java.net.URL jar, java.net.URLClassLoader loader)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToSystemPath(java.io.File jar)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToSystemPath(java.lang.String jar)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToSystemPath(java.net.URL jar)
          Appends the jar to the classpath of the classloader passed in.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathUtils

public ClasspathUtils()
Method Detail

addJarsToSystemPath

public static void addJarsToSystemPath(java.lang.String dir)
                                throws java.lang.Exception
Appends the jars and zips in the dir to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarsToSystemPath

public static void addJarsToSystemPath(java.io.File dir)
                                throws java.lang.Exception
Appends the jars and zips in the dir to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarsToPath

public static void addJarsToPath(java.lang.String dir,
                                 java.net.URLClassLoader loader)
                          throws java.lang.Exception
Appends the jars and zips in the dir to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarsToPath

public static void addJarsToPath(java.io.File dir,
                                 java.net.URLClassLoader loader)
                          throws java.lang.Exception
Appends the jars and zips in the dir to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToSystemPath

public static void addJarToSystemPath(java.lang.String jar)
                               throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToSystemPath

public static void addJarToSystemPath(java.io.File jar)
                               throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToSystemPath

public static void addJarToSystemPath(java.net.URL jar)
                               throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToPath

public static void addJarToPath(java.lang.String jar,
                                java.net.URLClassLoader loader)
                         throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToPath

public static void addJarToPath(java.io.File jar,
                                java.net.URLClassLoader loader)
                         throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs

addJarToPath

public static void addJarToPath(java.net.URL jar,
                                java.net.URLClassLoader loader)
                         throws java.lang.Exception
Appends the jar to the classpath of the classloader passed in.
Parameters:
url - the URL to be added to the search path of URLs


Copyright © 2002 OpenEJB Group. All Rights Reserved. http://openejb.sourceforge.net