org.mbari.siam.utils
Class JarClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.mbari.siam.utils.MultiClassLoader
          extended by org.mbari.siam.utils.JarClassLoader
Direct Known Subclasses:
DeviceServiceClassLoader

public class JarClassLoader
extends MultiClassLoader

JarClassLoader provides a minimalistic ClassLoader which shows how to instantiate a class which resides in a .jar file.

Based on code found in "Java Tip 70" at "Java World".

Version:
0.5
Author:
John D. Mitchell, Non, Inc., Mar 3, 1999

Field Summary
protected  JarResources jarResources
           
 
Fields inherited from class org.mbari.siam.utils.MultiClassLoader
monitorOn, sourceMonitorOn
 
Constructor Summary
JarClassLoader(java.lang.String jarName)
           
 
Method Summary
protected  byte[] loadClassBytes(java.lang.String className)
           
 
Methods inherited from class org.mbari.siam.utils.MultiClassLoader
formatClassName, loadClass, loadClass, monitor, print, setClassNameReplacementChar
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jarResources

protected JarResources jarResources
Constructor Detail

JarClassLoader

public JarClassLoader(java.lang.String jarName)
Method Detail

loadClassBytes

protected byte[] loadClassBytes(java.lang.String className)
Specified by:
loadClassBytes in class MultiClassLoader


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.