Class ClassLoaderDelegate
- java.lang.Object
-
- java.lang.ClassLoader
-
- com.atlassian.confluence.plugin.dev.ClassLoaderDelegate
-
public abstract class ClassLoaderDelegate extends ClassLoader
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderDelegate(ClassLoader delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setSigners
-
-
-
-
Constructor Detail
-
ClassLoaderDelegate
public ClassLoaderDelegate(ClassLoader delegate)
-
-
Method Detail
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Parameters:
name
-- Returns:
- the class
- Throws:
ClassNotFoundException
- See Also:
ClassLoader.loadClass(java.lang.String)
-
toString
public String toString()
- Overrides:
toString
in classObject
- Returns:
- the delegate's toString
- See Also:
Object.toString()
-
getResource
public URL getResource(String name)
- Overrides:
getResource
in classClassLoader
- Parameters:
name
-- Returns:
- the resource
- See Also:
ClassLoader.getResource(java.lang.String)
-
getResources
public Enumeration<URL> getResources(String name) throws IOException
- Overrides:
getResources
in classClassLoader
- Parameters:
name
-- Returns:
- an enumeration of matching resources
- Throws:
IOException
- See Also:
ClassLoader.getResources(java.lang.String)
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
getResourceAsStream
in classClassLoader
- Parameters:
name
-- Returns:
- an input stream for the matching resource
- See Also:
ClassLoader.getResourceAsStream(java.lang.String)
-
setDefaultAssertionStatus
public void setDefaultAssertionStatus(boolean enabled)
- Overrides:
setDefaultAssertionStatus
in classClassLoader
- Parameters:
enabled
-- See Also:
ClassLoader.setDefaultAssertionStatus(boolean)
-
setPackageAssertionStatus
public void setPackageAssertionStatus(String packageName, boolean enabled)
- Overrides:
setPackageAssertionStatus
in classClassLoader
- Parameters:
packageName
-enabled
-- See Also:
ClassLoader.setPackageAssertionStatus(java.lang.String, boolean)
-
setClassAssertionStatus
public void setClassAssertionStatus(String className, boolean enabled)
- Overrides:
setClassAssertionStatus
in classClassLoader
- Parameters:
className
-enabled
-- See Also:
ClassLoader.setClassAssertionStatus(java.lang.String, boolean)
-
clearAssertionStatus
public void clearAssertionStatus()
- Overrides:
clearAssertionStatus
in classClassLoader
- See Also:
ClassLoader.clearAssertionStatus()
-
-