xmlBlaster 2.2.0 API

org.xmlBlaster.util.classloader
Class XmlBlasterClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.xmlBlaster.util.classloader.XmlBlasterClassLoader

public class XmlBlasterClassLoader
extends java.net.URLClassLoader

This class loader changes the loading precedence of the JVM to prefer locally found classes and only if not found delegate to the JVM class loader


Field Summary
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  boolean useXmlBlasterClassloader
           
 
Constructor Summary
XmlBlasterClassLoader(Global glob, java.net.URL[] urls)
           
 
Method Summary
 void appendURL(java.net.URL url)
           
private  void debugState(java.lang.String name)
          Helper for debugging classpath.
(package private)  java.lang.String getURLPath()
           
 java.lang.Class loadClass(java.lang.String name)
           
 
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, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private java.lang.String ME

log

private static java.util.logging.Logger log

useXmlBlasterClassloader

private final boolean useXmlBlasterClassloader
Constructor Detail

XmlBlasterClassLoader

public XmlBlasterClassLoader(Global glob,
                             java.net.URL[] urls)
Method Detail

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

appendURL

public void appendURL(java.net.URL url)

debugState

private void debugState(java.lang.String name)
Helper for debugging classpath.


getURLPath

java.lang.String getURLPath()

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.