PaP
Class PaPurlLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--PaP.PaPurlLoader
All Implemented Interfaces:
java.io.Serializable

public class PaPurlLoader
extends java.net.URLClassLoader
implements java.io.Serializable

Our custom ClassLoader to load classes dynamically into the virtual machine from given URLs.

See Also:
Serialized Form

Inner classes inherited from class java.lang.ClassLoader
java.lang.ClassLoader.NativeLibrary
 
Fields inherited from class java.net.URLClassLoader
acc, ucp
 
Fields inherited from class java.security.SecureClassLoader
debug, initialized, pdcache
 
Fields inherited from class java.lang.ClassLoader
bootstrapClassPath, classes, defaultDomain, defaultPermissions, domains, getClassLoaderPerm, loadedLibraryNames, nativeLibraries, nativeLibraryContext, nocerts, package2certs, packages, parent, scl, sclSet, sys_paths, systemNativeLibraries, usr_paths
 
Constructor Summary
PaPurlLoader()
          Creates a new PaPurlLoader.
 
Method Summary
 java.lang.Class fetchClass(java.lang.String url, java.lang.String name)
          Interfaces the superclass URLClassLoader.
 java.lang.Class loadClass(java.lang.String name, boolean resolve)
          Overloads loadClass method in superclass URLClassLoader.
 
Methods inherited from class java.net.URLClassLoader
addURL, defineClass, definePackage, findClass, findResource, findResources, getPermissions, getURLs, isSealed, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
, check, defineClass, getProtectionDomain
 
Methods inherited from class java.lang.ClassLoader
addClass, checkCerts, checkPackageAccess, compareCerts, defineClass, defineClass, defineClass, defineClass0, definePackage, findBootstrapClass, findBootstrapClass0, findLibrary, findLoadedClass, findNative, findSystemClass, getBootstrapClassPath, getBootstrapResource, getBootstrapResources, getCallerClassLoader, getDefaultDomain, getGetClassLoaderPerm, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, initializePath, isAncestor, loadClass, loadClassInternal, loadLibrary, loadLibrary0, resolveClass, resolveClass0, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PaPurlLoader

public PaPurlLoader()
             throws java.lang.Exception
Creates a new PaPurlLoader. Instantiates the superclass URLClassLoader.
Method Detail

fetchClass

public java.lang.Class fetchClass(java.lang.String url,
                                  java.lang.String name)
                           throws java.lang.Exception
Interfaces the superclass URLClassLoader.
Parameters:
url - The URL where the class to be loaded is located.
name - The name of the class to be loaded.
Returns:
The class object that was loaded dynamically.

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 boolean resolve)
Overloads loadClass method in superclass URLClassLoader.
Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
name - The name of the class to be loaded.
resolve - True if the loaded class have to be resolved.
Returns:
The class object that was loaded dynamically.