|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader java.net.URLClassLoader org.xnap.loader.XNapClassLoader
public class XNapClassLoader
This class provides support to add additional jar files to the classpath.
Method Summary | |
---|---|
void |
add(java.lang.String[] files)
Locates files in jar search path and adds them to the
classpath. |
void |
add(java.net.URL url)
Adds url to the classpath. |
static boolean |
areDependenciesSatisfied(java.lang.String[] depends)
Returns true, if all depends are located in the jar
search path. |
static java.lang.String |
getHomeDir()
Returns the XNap preferences directory with a trailing file separator. |
static XNapClassLoader |
getInstance()
|
static java.io.File[] |
getSearchPath()
Returns the jar search path. |
static java.lang.String |
getURLsAsString()
|
static boolean |
isLoaded(java.net.URL url)
Returns true if url has been already loaded |
static java.io.File |
locate(java.lang.String filename)
Searches the jar search path for filename and returns a File object. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, 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 |
Method Detail |
---|
public static XNapClassLoader getInstance()
public void add(java.net.URL url) throws java.io.IOException
url
to the classpath.
java.io.IOException
public void add(java.lang.String[] files) throws java.io.IOException
files
in jar search path and adds them to the
classpath.
java.io.IOException
- if a file can not be found or is not a valid
jar filelocate(String)
public static boolean areDependenciesSatisfied(java.lang.String[] depends)
depends
are located in the jar
search path.
public static java.lang.String getHomeDir()
public static java.lang.String getURLsAsString()
public static java.io.File[] getSearchPath()
public static java.io.File locate(java.lang.String filename)
File
object.
filename
was not found; the file,
otherwiselocate(String)
public static boolean isLoaded(java.net.URL url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |