Package com.atlassian.confluence.util
Class ConfluenceUberClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- com.atlassian.confluence.util.ConfluenceUberClassLoader
-
public class ConfluenceUberClassLoader extends ClassLoader
This class loader tries to load classes from the application class loader first before delegating to the plugins class loader. This means this class loader can be used to load all classes available in the Confluence eco system.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceUberClassLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getResource(String name)
Enumeration<URL>
getResources(String name)
Class<?>
loadClass(String name)
void
setConfluenceMonitoring(ConfluenceMonitoring confluenceMonitoring)
void
setPluginsClassLoader(ClassLoader pluginsClassLoader)
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
setPluginsClassLoader
public void setPluginsClassLoader(ClassLoader pluginsClassLoader)
-
setConfluenceMonitoring
public void setConfluenceMonitoring(ConfluenceMonitoring confluenceMonitoring)
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getResource
public URL getResource(String name)
- Overrides:
getResource
in classClassLoader
-
getResources
public Enumeration<URL> getResources(String name) throws IOException
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-
-