Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
CASUAL.misc.MultiClassLoader Class Referenceabstract
Inheritance diagram for CASUAL.misc.MultiClassLoader:

Public Member Functions

Class loadClass (String className) throws ClassNotFoundException
 
synchronized Class loadClass (String className, boolean resolveIt) throws ClassNotFoundException
 
void setClassNameReplacementChar (char replacement)
 
Class loadClass (String className) throws ClassNotFoundException
 
synchronized Class loadClass (String className, boolean resolveIt) throws ClassNotFoundException
 
void setClassNameReplacementChar (char replacement)
 

Protected Member Functions

abstract byte[] loadClassBytes (String className)
 
String formatClassName (String className)
 
void monitor (String text)
 
abstract byte[] loadClassBytes (String className)
 
String formatClassName (String className)
 
void monitor (String text)
 

Static Protected Member Functions

static void print (String text)
 
static void print (String text)
 

Protected Attributes

boolean monitorOn = false
 
boolean sourceMonitorOn = true
 

Detailed Description

http://www.javaworld.com/javaworld/javatips/javatip70/MultiClassLoader.java A simple test class loader capable of loading from multiple sources, such as local files or a URL.

This class is derived from an article by Chuck McManis http://www.javaworld.com/javaworld/jw-10-1996/indepth.src.html with large modifications.

Note that this has been updated to use the non-deprecated version of defineClass() – JDM.

Author
Jack Harich - 8/18/97
John D. Mitchell - 99.03.04

Member Function Documentation

Class CASUAL.misc.MultiClassLoader.loadClass ( String  className) throws ClassNotFoundException

This is a simple version for external clients since they will always want the class resolved before it is returned to them.

Parameters
className
Returns
Exceptions
java.lang.ClassNotFoundException
Class CASUAL.misc.MultiClassLoader.loadClass ( String  className) throws ClassNotFoundException

This is a simple version for external clients since they will always want the class resolved before it is returned to them.

Parameters
className
Returns
Exceptions
java.lang.ClassNotFoundException
void CASUAL.misc.MultiClassLoader.setClassNameReplacementChar ( char  replacement)

This optional call allows a class name such as "COM.test.Hello" to be changed to "COM_test_Hello", which is useful for storing classes from different packages in the same retrieval directory. In the above example the char would be '_'.

Parameters
replacement
void CASUAL.misc.MultiClassLoader.setClassNameReplacementChar ( char  replacement)

This optional call allows a class name such as "COM.test.Hello" to be changed to "COM_test_Hello", which is useful for storing classes from different packages in the same retrieval directory. In the above example the char would be '_'.

Parameters
replacement

The documentation for this class was generated from the following file: