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

Field Summary
 
Fields inherited from class java.net.URLClassLoader
 
Fields inherited from class java.security.SecureClassLoader
 
Fields inherited from class java.lang.ClassLoader
 
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
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, 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
 

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


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.