java.lang.Object
java.lang.ClassLoader
com.lutris.classloader.MultiClassLoader.SysClassLoader
- Enclosing class:
- MultiClassLoader
- static class MultiClassLoader.SysClassLoader
- extends java.lang.ClassLoader
Class use to as a proxy for the system class loader under
java 1.*, where no system class loader object existed.
Under Java 1.2, this class is not used. This is a singleton.
| Nested classes inherited from class java.lang.ClassLoader |
|
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, 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 |
MultiClassLoader.SysClassLoader
MultiClassLoader.SysClassLoader()
loadClass
public java.lang.Class loadClass(java.lang.String className,
boolean resolve)
throws java.lang.ClassNotFoundException
- Description copied from class:
java.lang.ClassLoader
- Load a class using this ClassLoader or its parent, possibly resolving
it as well using
resolveClass(). It first tries to find
out if the class has already been loaded through this classloader by
calling findLoadedClass(). Then it calls
loadClass() on the parent classloader (or when there is
no parent it uses the VM bootclassloader). If the class is still
not loaded it tries to create a new class by calling
findClass(). Finally when resolve is
true it also calls resolveClass() on the
newly loaded class.
Subclasses should not override this method but should override
findClass() which is called by this method.
getResource
public java.net.URL getResource(java.lang.String name)
- Description copied from class:
java.lang.ClassLoader
- Get the URL to a resource using this classloader or one of its parents.
First tries to get the resource by calling
getResource()
on the parent classloader. If the parent classloader returns null then
it tries finding the resource by calling findResource() on
this classloader. The resource name should be separated by '/' for path
elements.
Subclasses should not override this method but should override
findResource() which is called by this method.
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String name)
- Description copied from class:
java.lang.ClassLoader
- Get a resource as stream using this classloader or one of its parents.
First calls
getResource() and if that returns a URL to
the resource then it calls and returns the InputStream given by
URL.openStream().
Subclasses should not override this method but should override
findResource() which is called by this method.