org.openejb.util
Class ClasspathUtils
java.lang.Object
org.openejb.util.ClasspathUtils
- public class ClasspathUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathUtils
public ClasspathUtils()
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-2006 OpenEJB. All Rights Reserved.