net.sf.xbus.base.core.reflection
Class XBUSClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.sf.xbus.base.core.reflection.XBUSClassLoader

public class XBUSClassLoader
extends java.net.URLClassLoader

XBUSClassLoader manages an URLClassLoader, that loads all jar-files under XBUS_HOME/lib, XBUS_HOME/lib/runtime and XBUS_HOME/plugin/lib. All *Bootstrap classes use this URLClassLoader to start the functionality of the xBus. For this reason, only the library xbus-bootstrap.jar must be in the CLASSPATH when starting the xBus.


Method Summary
static XBUSClassLoader getInstance(java.lang.ClassLoader parent)
          Returns an instance of the URLClassLoader, that loads all jar files under XBUS_HOME/lib, XBUS_HOME/lib/runtime and XBUS_HOME/plugin/lib.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XBUSClassLoader getInstance(java.lang.ClassLoader parent)
Returns an instance of the URLClassLoader, that loads all jar files under XBUS_HOME/lib, XBUS_HOME/lib/runtime and XBUS_HOME/plugin/lib. The first call will initialize the URLClassLoader.

Parameters:
parent - the parent ClassLoader
Returns:
an URLClassLoader suitable for the xBus