TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.invocation
Class UpdateablePathClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byorg.eclipse.hyades.execution.invocation.UpdateablePathClassLoader

public class UpdateablePathClassLoader
extends java.lang.ClassLoader

This classloader re-searches the system classpath (which is specified via the system property, java.class.path) every time it fields a request to find a class or a resource. The effect is that the classpath that we use is updateable at runtime.


Constructor Summary
UpdateablePathClassLoader()
           
UpdateablePathClassLoader(java.lang.ClassLoader parent)
           
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
          This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized.
protected  java.net.URL findResource(java.lang.String name)
          This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized.
protected  java.util.Enumeration findResources(java.lang.String name)
          This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized.
 
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, 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

UpdateablePathClassLoader

public UpdateablePathClassLoader(java.lang.ClassLoader parent)
Parameters:
parent -

UpdateablePathClassLoader

public UpdateablePathClassLoader()
Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized. The property used for the system classpath value is java.class.path

Throws:
java.lang.ClassNotFoundException
See Also:
ClassLoader.findClass(java.lang.String), java.lang.System.getProperty(String, String), java.lang.System.setProperty(String, String)

findResource

protected java.net.URL findResource(java.lang.String name)
This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized. The property used for the system classpath value is java.class.path

See Also:
ClassLoader.findResource(java.lang.String), java.lang.System.getProperty(String, String), java.lang.System.setProperty(String, String)

findResources

protected java.util.Enumeration findResources(java.lang.String name)
                                       throws java.io.IOException
This version searches the system classpath every time this method is called, so that runtime updates of that property are utilized. The property used for the system classpath value is java.class.path

Throws:
java.io.IOException
See Also:
ClassLoader.findResources(java.lang.String), java.lang.System.getProperty(String, String), java.lang.System.setProperty(String, String)

TPTP 4.4.0 Platform Project
Public API Specification