|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--com.objectwave.customClassLoader.MultiClassLoader | +--com.objectwave.tools.TraceClassLoader
Loads class bytes from a file.
Field Summary |
Fields inherited from class com.objectwave.customClassLoader.MultiClassLoader |
loadLocalClasses, monitorOn, sourceMonitorOn |
Constructor Summary | |
TraceClassLoader()
|
Method Summary | |
java.lang.Object |
getContent(java.net.URL url)
Every custom class loader will need to be able to get the content from a modified URL. |
java.io.InputStream |
getInputStream(java.net.URL url)
Every custom class loader will need to be able to get the input stream from a modified URL. |
protected byte[] |
loadClassBytes(java.lang.String className)
Must be implmented by subclass. |
protected byte[] |
loadLocalClassBytes(java.lang.String fullClassName)
Similar to findSystemClass but the newly defined class will have this as the ClassLoader. |
Methods inherited from class com.objectwave.customClassLoader.MultiClassLoader |
findClass, formatClassName, getResource, getResourceAsStream, initPathInformation, loadClass, loadClass, locateClass, lookForPreviousDefinitions, main, monitor, print, setClassNameReplacementChar, useLocalLoader |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, 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 |
Constructor Detail |
public TraceClassLoader()
Method Detail |
public java.lang.Object getContent(java.net.URL url) throws java.io.IOException
MultiClassLoader
getContent
in class MultiClassLoader
url
-
java.io.IOException
public java.io.InputStream getInputStream(java.net.URL url) throws java.io.IOException
MultiClassLoader
getInputStream
in class MultiClassLoader
url
-
java.io.IOException
protected byte[] loadLocalClassBytes(java.lang.String fullClassName)
MultiClassLoader
loadLocalClassBytes
in class MultiClassLoader
fullClassName
-
protected byte[] loadClassBytes(java.lang.String className)
MultiClassLoader
loadClassBytes
in class MultiClassLoader
className
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |