org.apache.maven.shared.runtime
Class DelegatingClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.maven.shared.runtime.DelegatingClassLoader
public class DelegatingClassLoader
- extends URLClassLoader
A parent- or child-delegating class loader for use by tests.
- Version:
- $Id: DelegatingClassLoader.java 831910 2009-11-02 15:05:33Z markh $
- Author:
- Mark Hobson
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingClassLoader
public DelegatingClassLoader(URL[] urls)
DelegatingClassLoader
public DelegatingClassLoader(URL[] urls,
ClassLoader parent)
DelegatingClassLoader
public DelegatingClassLoader(URL[] urls,
ClassLoader parent,
boolean childDelegating)
loadClass
public Class<?> loadClass(String name)
throws ClassNotFoundException
-
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
getResource
public URL getResource(String name)
-
- Overrides:
getResource
in class ClassLoader
getResources
public Enumeration<URL> getResources(String name)
throws IOException
-
- Overrides:
getResources
in class ClassLoader
- Throws:
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.