org.objectweb.jonas.loader
Class WebappClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.objectweb.jonas.loader.AbsModuleClassLoader
org.objectweb.jonas.loader.SimpleWebappClassLoader
org.objectweb.jonas.loader.WebappClassLoader
public class WebappClassLoader
- extends SimpleWebappClassLoader
ClassLoader specialized for WebApps. It add the WEB-INF/wsdl/ directory
of the war in the URL repository, the base URL of the jar file and the
WEB-INF/classes/ directory.
Used in WsGen.
- Author:
- Guillaume Sauthier
Method Summary |
URL |
getBaseURL()
|
protected void |
init()
Add the WEB-INF/classes/ directory and the content of
WEB-INF/lib/ 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 |
WebappClassLoader
public WebappClassLoader(URL module)
throws IOException
- Create a new WebappClassLoader with default parent ClassLoader
- Parameters:
module
- an URL of Web file
- Throws:
IOException
- if creation fails
WebappClassLoader
public WebappClassLoader(URL module,
ClassLoader parent)
throws IOException
- Create a new WebappClassLoader with specified parent ClassLoader
- Parameters:
module
- an URL of Web fileparent
- the parent ClasLoader
- Throws:
IOException
- if creation fails
init
protected void init()
throws IOException
- Add the WEB-INF/classes/ directory and the content of
WEB-INF/lib/ in the ClassLoader
- Overrides:
init
in class SimpleWebappClassLoader
- Throws:
IOException
- if cannot add in repository specified paths
getBaseURL
public URL getBaseURL()
- Returns:
- Returns the Base URL for this ClassLoader
Copyright © 2007 OW2 Consortium. All Rights Reserved.