org.xwiki.classloader
Class ExtendedURLClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.xwiki.classloader.ExtendedURLClassLoader
- Direct Known Subclasses:
- URIClassLoader
public class ExtendedURLClassLoader
- extends URLClassLoader
Implementation that allows adding URLs on demand (the default URLClassLoader only allows
adding URLs in the constructor).
- Since:
- 2.0.1
- Version:
- $Id$
| 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, toString, wait, wait, wait |
ExtendedURLClassLoader
public ExtendedURLClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
- See
URLClassLoader.URLClassLoader(URL[], ClassLoader, URLStreamHandlerFactory).
- Parameters:
urls - the URLs from which to load classes and resourcesparent - the parent class loader for delegationfactory - the URLStreamHandlerFactory to use when creating URLs
ExtendedURLClassLoader
public ExtendedURLClassLoader(URL[] urls,
ClassLoader parent)
- See
URLClassLoader.URLClassLoader(URL[], ClassLoader).
- Parameters:
urls - the URLs from which to load classes and resourcesparent - the parent class loader for delegation
ExtendedURLClassLoader
public ExtendedURLClassLoader(URL[] urls)
- See
URLClassLoader.URLClassLoader(URL[]).
- Parameters:
urls - the URLs from which to load classes and resources
ExtendedURLClassLoader
public ExtendedURLClassLoader(ClassLoader parent,
URLStreamHandlerFactory factory)
addURL
public void addURL(URL url)
- Overrides:
addURL in class URLClassLoader
- Parameters:
url - the JAR URL to add
addURLs
public void addURLs(List<URL> urls)
- Parameters:
urls - the JAR URLs to add
Copyright © 2004-2012 XWiki. All Rights Reserved.