ter.API.ClassLoader
Class GeneralClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--ter.API.ClassLoader.GeneralClassLoader
Direct Known Subclasses:
FileClassLoader, JARClassLoader, URLClassLoader

public abstract class GeneralClassLoader
extends java.lang.ClassLoader

Title: JavInspector

Description: a General Abstrract Class Loader

Company: Université de Nice Sophia Antipolis (UNSA)

Version:
1.0
Author:
Jerôme GAHIDE - Lucas CHARBIT - Gabriel ZERBIB - Xavier GALBOIS

Constructor Summary
GeneralClassLoader()
          Default constructor
 
Method Summary
 java.lang.Class loadClass(java.lang.String className)
          loads the class className this call is equivalent to : loadClass(className, true);
 java.lang.Class loadClass(java.lang.String className, boolean resolveIt)
          loads the class className
 void setClassNameReplacementChar(char replacement)
          Sets the package spearator char (default is '.')
abstract  void setFilePrefix(java.lang.String str)
          Changes the prefix of the class to load (ex : the classpath or the jar file)
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralClassLoader

public GeneralClassLoader()
Default constructor

Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
loads the class className this call is equivalent to : loadClass(className, true);

Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
className - the name of the class to load
Returns:
the loaded class if it succeed
Throws:
java.lang.ClassNotFoundException

loadClass

public java.lang.Class loadClass(java.lang.String className,
                                 boolean resolveIt)
                          throws java.lang.ClassNotFoundException
loads the class className

Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
className - the name of the class to load
resolveIt - tells wether the loader should call the : parent.resolvClass(className);
Returns:
the loaded class if it succeed
Throws:
java.lang.ClassNotFoundException
java.lang.NoClassDefFoundError

setClassNameReplacementChar

public void setClassNameReplacementChar(char replacement)
Sets the package spearator char (default is '.')

Parameters:
replacement -

setFilePrefix

public abstract void setFilePrefix(java.lang.String str)
                            throws java.io.IOException
Changes the prefix of the class to load (ex : the classpath or the jar file)

Parameters:
str -
java.io.IOException