MicroTAPAS
Class PaPurlLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--MicroTAPAS.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 URL(s).

See Also:
Serialized Form

Constructor Summary
PaPurlLoader()
          Constructor only to instantiate superclass URLClassLoader
 
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
findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaPurlLoader

public PaPurlLoader()
             throws java.lang.Exception
Constructor only to instantiate 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
java.lang.Exception

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