org.apache.maven.j2ee
Class WarClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.maven.j2ee.WarClassLoader
- public class WarClassLoader
- extends URLClassLoader
A ClassLoader
that loads classes from a WarFile
- Version:
- $Id: WarClassLoader.java 170200 2005-05-15 06:24:19Z brett $
- Author:
- dIon Gillard
Constructor Summary |
WarClassLoader(WarFile war)
Creates a new instance of WarClassLoader |
WarClassLoader(WarFile war,
ClassLoader classloader)
Creates a new instance of WarClassLoader with the provided parent
classloader as the one to delegate to if classes can't be found |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, 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, toString, wait, wait, wait |
WarClassLoader
public WarClassLoader(WarFile war)
throws IOException,
MalformedURLException
- Creates a new instance of WarClassLoader
- Parameters:
war
- a WarFile
- Throws:
IOException
- when an I/O error occurs extracting the jars from the
war
MalformedURLException
- if the jar: URL is not supported on the
underlying platform
WarClassLoader
public WarClassLoader(WarFile war,
ClassLoader classloader)
throws IOException,
MalformedURLException
- Creates a new instance of WarClassLoader with the provided parent
classloader as the one to delegate to if classes can't be found
- Parameters:
war
- a WarFile
classloader
- a ClassLoader
to delegate to.
- Throws:
IOException
- when an I/O error occurs extracting the jars from
the war
MalformedURLException
- if the jar: URL is not supported on the
underlying platform
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.