org.apache.axis.utils
Class JWSClassLoader
ClassLoader
org.apache.axis.utils.JWSClassLoader
public class JWSClassLoader
extends ClassLoader
Class loader for JWS files. There is one of these per JWS class, and
we keep a static Hashtable of them, indexed by class name. When we want
to reload a JWS, we replace the ClassLoader for that class and let the
old one get GC'ed.
- Glen Daniels (gdaniels@apache.org)
- Doug Davis (dug@us.ibm.com)
JWSClassLoader(String name, ClassLoader cl, String classFile) - Construct a JWSClassLoader with a class name, a parent ClassLoader,
and a filename of a .class file containing the bytecode for the class.
|
InputStream | getResourceAsStream(String resourceName) - Overloaded getResourceAsStream() so we can be sure to return the
correct class file regardless of where it might live on our hard
drive.
|
JWSClassLoader
public JWSClassLoader(String name,
ClassLoader cl,
String classFile)
throws FileNotFoundException,
IOException
Construct a JWSClassLoader with a class name, a parent ClassLoader,
and a filename of a .class file containing the bytecode for the class.
The constructor will load the bytecode, define the class, and register
this JWSClassLoader in the static registry.
name
- the name of the class which will be created/loadedcl
- the parent ClassLoaderclassFile
- filename of the .class file
getResourceAsStream
public InputStream getResourceAsStream(String resourceName)
Overloaded getResourceAsStream() so we can be sure to return the
correct class file regardless of where it might live on our hard
drive.
resourceName
- the resource to load (should be "classname.class")
- an InputStream of the class bytes, or null
Copyright © 2005 Apache Web Services Project. All Rights Reserved.