Package org.dspace.core
Class PathsClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.dspace.core.PathsClassLoader
-
public class PathsClassLoader extends ClassLoader
Load classes from a custom class path. This loader first delegates to the parent loader in the usual way. If no parent can load the class, this loader will then search the path in the order given. Each element of the path may name a directory (which will be searched for .class files) or a JAR file (likewise searched for .class files). Searching consists of converting the binary name of the class to a path within the directory or archive, and looking it up there, as with the system class path. The only reason that this loader exists is to facilitate the loading of classes into a Servlet application from paths other than the class path established by the servlet container -- for example, paths provided by the application's private configuration.- Author:
- Mark H. Wood
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassfindClass(String name)-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
findClass
protected Class findClass(String name) throws ClassNotFoundException
- Overrides:
findClassin classClassLoader- Throws:
ClassNotFoundException
-
-