|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.ow2.jonas.lib.bootstrap.loader.JClassLoader
public class JClassLoader
This class implements a URLClassLoader, that permits to add some URLs in it.
| Constructor Summary | |
|---|---|
JClassLoader(String name,
URL[] urls)
Constructs a new ClassLoader with the specified URLs. |
|
JClassLoader(String name,
URL[] urls,
ClassLoader parent)
Constructs a new ClassLoader with the specified URLs. |
|
| Method Summary | |
|---|---|
void |
addURL(URL url)
Add the specified URL to this ClassLoader. |
void |
addURLs(URL[] urls)
Add the specified URLs to this ClassLoader. |
String |
getClassPath()
Get the class path of this classloader |
void |
printURLs()
Display all the URLs from the class loader |
String |
toString()
Displays useful information |
| Methods inherited from class java.net.URLClassLoader |
|---|
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JClassLoader(String name,
URL[] urls,
ClassLoader parent)
name - ClassLoader name (used for Display)urls - the URLs to add at the ClassLoader creation.parent - parent ClassLoader, null if no parent.
public JClassLoader(String name,
URL[] urls)
name - ClassLoader name (used for Display)urls - the URLs to add at the ClassLoader creation.| Method Detail |
|---|
public void addURL(URL url)
addURL in class URLClassLoaderurl - the URL to add to this ClassLoader.public void addURLs(URL[] urls)
urls - the URLs to add to this ClassLoader.public void printURLs()
public String getClassPath()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||