|
|
RoxenClassLoader
: Class RoxenClassLoader
com.roxen.roxen
Class RoxenClassLoader
java.lang.Object
|
+--java.lang.ClassLoader
|
+--java.security.SecureClassLoader
|
+--java.net.URLClassLoader
|
+--com.roxen.roxen.RoxenClassLoader
- public class RoxenClassLoader
- extends java.net.URLClassLoader
Method Summary |
void |
addJarFile(java.lang.String jarFileName)
Adds a JAR file to the class path for which this ClassLoader handles. |
static java.lang.String |
getModuleClassName(java.lang.String jarFileName)
Attempts to examine the manifest of a JAR file for the main class |
Methods inherited from class java.net.URLClassLoader |
addURL,
definePackage,
findClass,
findResource,
findResources,
getPermissions,
getURLs,
newInstance,
newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
Methods inherited from class java.lang.ClassLoader |
defineClass,
defineClass,
defineClass,
definePackage,
findLibrary,
findLoadedClass,
findSystemClass,
getPackage,
getPackages,
getParent,
getResource,
getResourceAsStream,
getResources,
getSystemClassLoader,
getSystemResource,
getSystemResourceAsStream,
getSystemResources,
loadClass,
loadClass,
resolveClass,
setSigners |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RoxenClassLoader
public RoxenClassLoader(java.net.URL[] urls)
addJarFile
public void addJarFile(java.lang.String jarFileName)
throws java.io.FileNotFoundException,
java.io.IOException
- Adds a JAR file to the class path for which this ClassLoader handles.
It will also attempt to read the manifest of the JAR file and add the
entries specified under 'Class-Path' to the class path handled by this
ClassLoader.
-
- Parameters:
jarFileName - Path pointing to the JAR file
getModuleClassName
public static java.lang.String getModuleClassName(java.lang.String jarFileName)
throws java.io.FileNotFoundException,
java.io.IOException
- Attempts to examine the manifest of a JAR file for the main class
-
- Parameters:
jarFileName - Path to the JAR file to read
- Returns:
- The name of the main class specified in the manifest, otherwise null
|
|