UTJML

edu.utep.cs.utjml.tgen
Class TcgClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by edu.utep.cs.utjml.tgen.TcgClassLoader

public class TcgClassLoader
extends ClassLoader

A special class loader to take into account of tgen-specific options such as -C (--classpath). To load a class, an inherited method Class loadClass(String) should be used for portability; the method Class Class.forName(String) should not be used.

Version:
$Revision: 1.2 $
Author:
Yoonsik Cheon

Constructor Summary
TcgClassLoader()
           
 
Method Summary
protected  Class findClass(String name)
          Finds the specified class.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, 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

TcgClassLoader

public TcgClassLoader()
Method Detail

findClass

protected Class findClass(String name)
                   throws ClassNotFoundException
Finds the specified class. This method is overridden here to take into account of tgen-specific option, such as -C (--classpath). This method will be called by the loadClass method after checking the parent class loader for the requested class.

Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException

UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.