public abstract class ClassLoaderDelegate extends ClassLoader
Constructor and Description |
---|
ClassLoaderDelegate(ClassLoader delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clearAssertionStatus() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
Enumeration<URL> |
getResources(String name) |
Class<?> |
loadClass(String name) |
void |
setClassAssertionStatus(String className,
boolean enabled) |
void |
setDefaultAssertionStatus(boolean enabled) |
void |
setPackageAssertionStatus(String packageName,
boolean enabled) |
String |
toString() |
defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setSigners
public ClassLoaderDelegate(ClassLoader delegate)
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
name
- ClassNotFoundException
ClassLoader.loadClass(java.lang.String)
public String toString()
toString
in class Object
Object.toString()
public URL getResource(String name)
getResource
in class ClassLoader
name
- ClassLoader.getResource(java.lang.String)
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
name
- IOException
ClassLoader.getResources(java.lang.String)
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
name
- ClassLoader.getResourceAsStream(java.lang.String)
public void setDefaultAssertionStatus(boolean enabled)
setDefaultAssertionStatus
in class ClassLoader
enabled
- ClassLoader.setDefaultAssertionStatus(boolean)
public void setPackageAssertionStatus(String packageName, boolean enabled)
setPackageAssertionStatus
in class ClassLoader
packageName
- enabled
- ClassLoader.setPackageAssertionStatus(java.lang.String, boolean)
public void setClassAssertionStatus(String className, boolean enabled)
setClassAssertionStatus
in class ClassLoader
className
- enabled
- ClassLoader.setClassAssertionStatus(java.lang.String, boolean)
public void clearAssertionStatus()
clearAssertionStatus
in class ClassLoader
ClassLoader.clearAssertionStatus()
Copyright © 2003–2021 Atlassian. All rights reserved.