de.smartics.exceptions.runtime
Class FallbackClassLoader
java.lang.Object
java.lang.ClassLoader
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.
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 |
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.
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.