com.ibm.tivoli.maximo.report.control.svgtools

Class ChildFirstURLClassLoader

  • java.lang.Object
    • java.lang.ClassLoader
      • com.ibm.tivoli.maximo.report.control.svgtools.ChildFirstURLClassLoader


  • public class ChildFirstURLClassLoader
    extends java.lang.ClassLoader
    Will attempt to load classes from a supplied list of Child URLs first, and if not found, then it will delegate to the Parent. This is a slightly modified solution to the posted StackOverflow solution http://stackoverflow.com/questions/5445511/how-do-i-create-a-parent-last-child-first-classloader-in-java-or-how-to-overr
    • Constructor Summary

      Constructors 
      Constructor and Description
      ChildFirstURLClassLoader(java.lang.ClassLoader parent, java.util.List classpath)
      Create the Child Class loader, and delagate to the parent
      ChildFirstURLClassLoader(java.util.List classpath)
      Create the Child Class loader, and delagate to the parent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.lang.Class loadClass(java.lang.String name, boolean resolve) 
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, clone, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChildFirstURLClassLoader

        public ChildFirstURLClassLoader(java.util.List classpath)
        Create the Child Class loader, and delagate to the parent
        Parameters:
        classpath -
      • ChildFirstURLClassLoader

        public ChildFirstURLClassLoader(java.lang.ClassLoader parent,
                                        java.util.List classpath)
        Create the Child Class loader, and delagate to the parent
        Parameters:
        classpath -
    • Method Detail

      • loadClass

        protected java.lang.Class loadClass(java.lang.String name,
                                            boolean resolve)
                                     throws java.lang.ClassNotFoundException
        Overrides:
        loadClass in class java.lang.ClassLoader
        Throws:
        java.lang.ClassNotFoundException