org.objectweb.jonas.server
Class JClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--org.objectweb.jonas.server.JClassLoader

public class JClassLoader
extends java.net.URLClassLoader

This class implements a URLClassLoader, that permits to add some URLs in it.

Author:
Ludovic Bert, Florent Benoit

Constructor Summary
JClassLoader(java.net.URL[] urls)
          Constructs a new ClassLoader with the specified URLs.
JClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
          Constructs a new ClassLoader with the specified URLs.
 
Method Summary
 java.lang.String getClassPath()
           
 void printURLs()
           
 
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
 

Constructor Detail

JClassLoader

public JClassLoader(java.net.URL[] urls,
                    java.lang.ClassLoader parent)
Constructs a new ClassLoader with the specified URLs.
Parameters:
urls - the URLs to add at the ClassLoader creation.
parent - parent ClassLoader, null if no parent.

JClassLoader

public JClassLoader(java.net.URL[] urls)
Constructs a new ClassLoader with the specified URLs. Uses the default delegation parent classloader.
Parameters:
urls - the URLs to add at the ClassLoader creation.
Method Detail

printURLs

public void printURLs()

getClassPath

public java.lang.String getClassPath()