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 java.lang.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
 java.net.URL getResource(java.lang.String name)
           
 java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
           
 java.lang.Class<?> loadClass(java.lang.String name)
           
 void setPluginsClassLoader(java.lang.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(java.lang.ClassLoader pluginsClassLoader)

loadClass

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

getResource

public java.net.URL getResource(java.lang.String name)
Overrides:
getResource in class java.lang.ClassLoader

getResources

public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
                                                 throws java.io.IOException
Overrides:
getResources in class java.lang.ClassLoader
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.