org.ow2.jonas.lib.loader
Class SimpleWebappClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.ow2.jonas.lib.loader.AbsModuleClassLoader
org.ow2.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
Method Summary |
protected void |
init()
Add the WEB-INF/wsdl/ directory in the ClassLoader. |
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 |
SimpleWebappClassLoader
public SimpleWebappClassLoader(URL module)
throws IOException
- Create a new SimpleWebappClassLoader with default parent ClassLoader
- Parameters:
module
- an URL of Web file
- Throws:
IOException
- if creation fails
SimpleWebappClassLoader
public SimpleWebappClassLoader(URL module,
ClassLoader parent)
throws IOException
- Create a new SimpleWebappClassLoader with specified parent ClassLoader
- Parameters:
module
- an URL of Web fileparent
- the parent ClassLoader
- Throws:
IOException
- if creation fails
init
protected void init()
throws IOException
- Add the WEB-INF/wsdl/ directory in the ClassLoader.
- Overrides:
init
in class AbsModuleClassLoader
- Throws:
IOException
- if META-INF/wsdl and ejb-jar root directories cannot
be inserted in loader
Copyright © 2010 OW2 Consortium. All Rights Reserved.