de.smartics.exceptions.runtime
Class FallbackClassLoader

Package class diagram package FallbackClassLoader
java.lang.Object
  extended by java.lang.ClassLoader
      extended by de.smartics.exceptions.runtime.FallbackClassLoader

public final class FallbackClassLoader
     
     
extends ClassLoader

Allows to provide a fallback, secondary class loader to be consulted, if the primary class loader cannot provide a resource.


Constructor Summary
FallbackClassLoader(ClassLoader primaryClassLoader, ClassLoader secondaryClassLoader)
          Default constructor.
 
Method Summary
protected  Class<?> findClass(String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, 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
 

Constructor Detail

FallbackClassLoader

public FallbackClassLoader(ClassLoader primaryClassLoader,
                           ClassLoader secondaryClassLoader)
Default constructor.

Parameters:
primaryClassLoader - the class loader consulted first.
secondaryClassLoader - the class loader consulted, if resource cannot be found by primary class loader.
Method Detail

findClass

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


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.