org.objectweb.jonas_lib.loader
Class EjbJarClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.objectweb.jonas_lib.loader.AbsModuleClassLoader
                  extended by org.objectweb.jonas_lib.loader.EjbJarClassLoader

public class EjbJarClassLoader
extends AbsModuleClassLoader

ClassLoader used for loading EJB classes and resources

Author:
Guillaume Sauthier

Constructor Summary
EjbJarClassLoader(java.net.URL[] modules)
          Create a new EjbJarClassLoader with default parent ClassLoader
EjbJarClassLoader(java.net.URL[] modules, java.lang.ClassLoader parent)
          Create a new EjbJarClassLoader with specified parent ClassLoader
 
Method Summary
protected  void init()
          Add the directory and the content of META-INF/wsdl/ in the ClassLoader
 
Methods inherited from class org.objectweb.jonas_lib.loader.AbsModuleClassLoader
addContentInRepository, addInRepository, getBases, getClasspath, toString
 
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, wait, wait, wait
 

Constructor Detail

EjbJarClassLoader

public EjbJarClassLoader(java.net.URL[] modules)
                  throws java.io.IOException
Create a new EjbJarClassLoader with default parent ClassLoader

Parameters:
modules - an URL[] of EjbJar files
Throws:
java.io.IOException - if creation fails

EjbJarClassLoader

public EjbJarClassLoader(java.net.URL[] modules,
                         java.lang.ClassLoader parent)
                  throws java.io.IOException
Create a new EjbJarClassLoader with specified parent ClassLoader

Parameters:
modules - an URL[] of EjbJar files
parent - the parent ClassLoader to use
Throws:
java.io.IOException - if creation fails
Method Detail

init

protected void init()
             throws java.io.IOException
Add the directory and the content of META-INF/wsdl/ in the ClassLoader

Overrides:
init in class AbsModuleClassLoader
Throws:
java.io.IOException - When WEB-INF/classes and WEB-INF/wsdl directories cannot be added in loader