public class FakeURLClassLoader extends URLClassLoader
A URLClassloader that overrides the getURLs() method to return the list of urls passed in to the constructor, but otherwise acts as if it has no urls, which would cause it to delegate to the parent classloader (in this case an OSGi classloader).
The main use of this class is with jars containing tlds. Jasper expects a URL classloader to inspect for jars with tlds.
Constructor and Description |
---|
FakeURLClassLoader(ClassLoader osgiClassLoader,
URL[] jars) |
Modifier and Type | Method and Description |
---|---|
URL[] |
getURLs() |
String |
toString() |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public FakeURLClassLoader(ClassLoader osgiClassLoader, URL[] jars)
public URL[] getURLs()
getURLs
in class URLClassLoader
public String toString()
toString
in class Object
Object.toString()
Copyright © 1995-2015 Webtide. All Rights Reserved.