public class JWSClassLoader extends ClassLoader
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public JWSClassLoader(String name, ClassLoader cl, String classFile) throws FileNotFoundException, IOException
name
- the name of the class which will be created/loadedcl
- the parent ClassLoaderclassFile
- filename of the .class fileFileNotFoundException
IOException
public InputStream getResourceAsStream(String resourceName)
getResourceAsStream
in class ClassLoader
resourceName
- the resource to load (should be "classname.class")Copyright © The Apache Software Foundation. All Rights Reserved.