com.atlassian.confluence.util
Class ConfluenceUberClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by 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
ConfluenceUberClassLoader()
           
 
Method Summary
 URL getResource(String name)
           
 Enumeration<URL> getResources(String name)
           
 Class<?> loadClass(String name)
           
 void setPluginsClassLoader(ClassLoader pluginsClassLoader)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceUberClassLoader

public ConfluenceUberClassLoader()
Method Detail

setPluginsClassLoader

public void setPluginsClassLoader(ClassLoader pluginsClassLoader)

loadClass

public Class<?> loadClass(String name)
                   throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

getResource

public URL getResource(String name)
Overrides:
getResource in class ClassLoader

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Overrides:
getResources in class ClassLoader
Throws:
IOException


Copyright © 2003-2013 Atlassian. All Rights Reserved.