org.objectweb.jonas_lib.loader
Class SimpleWebappClassLoader

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.SimpleWebappClassLoader
Direct Known Subclasses:
WebappClassLoader

public class SimpleWebappClassLoader
extends AbsModuleClassLoader

ClassLoader specialized for WebApps. It add only the WEB-INF/wsdl/ directory of the war in the URL repository. Used because Catalina doesn't automatically add this resources in its own ClassLoader

Author:
Guillaume Sauthier

Constructor Summary
SimpleWebappClassLoader(java.net.URL module)
          Create a new SimpleWebappClassLoader with default parent ClassLoader
SimpleWebappClassLoader(java.net.URL module, java.lang.ClassLoader parent)
          Create a new SimpleWebappClassLoader with specified parent ClassLoader
 
Method Summary
protected  void init()
          Add the WEB-INF/wsdl/ directory 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

SimpleWebappClassLoader

public SimpleWebappClassLoader(java.net.URL module)
                        throws java.io.IOException
Create a new SimpleWebappClassLoader with default parent ClassLoader

Parameters:
module - an URL of Web file
Throws:
java.io.IOException - if creation fails

SimpleWebappClassLoader

public SimpleWebappClassLoader(java.net.URL module,
                               java.lang.ClassLoader parent)
                        throws java.io.IOException
Create a new SimpleWebappClassLoader with specified parent ClassLoader

Parameters:
module - an URL of Web file
parent - the parent ClassLoader
Throws:
java.io.IOException - if creation fails
Method Detail

init

protected void init()
             throws java.io.IOException
Add the WEB-INF/wsdl/ directory in the ClassLoader.

Overrides:
init in class AbsModuleClassLoader
Throws:
java.io.IOException - if META-INF/wsdl and ejb-jar root directories cannot be inserted in loader