org.openejb.util
Class ClasspathUtils

java.lang.Object
  extended byorg.openejb.util.ClasspathUtils

public class ClasspathUtils
extends Object


Constructor Summary
ClasspathUtils()
           
 
Method Summary
static void addJarsToPath(File dir)
           
static void addJarsToPath(File dir, String loaderName)
           
static void addJarsToPath(String dir)
           
static void addJarsToPath(String dir, String loaderName)
           
static void addJarToPath(File jar)
           
static void addJarToPath(File jar, String loaderName)
           
static void addJarToPath(String jar)
           
static void addJarToPath(String jar, String loaderName)
           
static void addJarToPath(URL jar)
           
static void addJarToPath(URL jar, String loaderName)
           
static void addJarToSystemPath(File jar)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToSystemPath(String jar)
          Appends the jar to the classpath of the classloader passed in.
static void addJarToSystemPath(URL jar)
          Appends the jar to the classpath of the classloader passed in.
static ClassLoader getContextClassLoader()
           
protected static org.openejb.util.ClasspathUtils.Loader getLoader()
           
protected static org.openejb.util.ClasspathUtils.Loader getLoader(String name)
           
static void rebuildJavaClassPathVariable()
           
 
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

addJarToPath

public static void addJarToPath(String jar)
                         throws Exception
Throws:
Exception

addJarToPath

public static void addJarToPath(File jar)
                         throws Exception
Throws:
Exception

addJarToPath

public static void addJarToPath(URL jar)
                         throws Exception
Throws:
Exception

addJarToPath

public static void addJarToPath(String jar,
                                String loaderName)
                         throws Exception
Throws:
Exception

addJarToPath

public static void addJarToPath(File jar,
                                String loaderName)
                         throws Exception
Throws:
Exception

addJarToPath

public static void addJarToPath(URL jar,
                                String loaderName)
                         throws Exception
Throws:
Exception

addJarsToPath

public static void addJarsToPath(String dir)
                          throws Exception
Throws:
Exception

addJarsToPath

public static void addJarsToPath(File dir)
                          throws Exception
Throws:
Exception

addJarsToPath

public static void addJarsToPath(String dir,
                                 String loaderName)
                          throws Exception
Throws:
Exception

addJarsToPath

public static void addJarsToPath(File dir,
                                 String loaderName)
                          throws Exception
Throws:
Exception

addJarToSystemPath

public static void addJarToSystemPath(String jar)
                               throws Exception
Appends the jar to the classpath of the classloader passed in.

Throws:
Exception

addJarToSystemPath

public static void addJarToSystemPath(File jar)
                               throws Exception
Appends the jar to the classpath of the classloader passed in.

Throws:
Exception

addJarToSystemPath

public static void addJarToSystemPath(URL jar)
                               throws Exception
Appends the jar to the classpath of the classloader passed in.

Throws:
Exception

getLoader

protected static org.openejb.util.ClasspathUtils.Loader getLoader()

getLoader

protected static org.openejb.util.ClasspathUtils.Loader getLoader(String name)

getContextClassLoader

public static ClassLoader getContextClassLoader()

rebuildJavaClassPathVariable

public static void rebuildJavaClassPathVariable()
                                         throws Exception
Throws:
Exception


Copyright © 1999-2005 OpenEJB. All Rights Reserved.