java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaClassLoader
- All Implemented Interfaces:
JavaClassLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
NOT in DTFJvoid
addClass
(String name, ImagePointer ip) NOT in DTFJFind a named class within this class loader.TODO: javacore appears to only list defined classes per class loader.Get the set of classes which are defined in this JavaClassLoader.NON-DTFJ, don't use outside DTFJ.Get the java.lang.ClassLoader instance associated with this class loader.NON-DTFJinternalGetClass
(String className) NON-DTFJ.void
setObject
(JCJavaObject object) Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface com.ibm.dtfj.java.JavaClassLoader
equals, hashCode
-
Constructor Details
-
JCJavaClassLoader
- Throws:
JCInvalidArgumentsException
-
-
Method Details
-
findClass
Description copied from interface:JavaClassLoader
Find a named class within this class loader. The class may have been defined in this class loader, or this class loader may have delegated the load to another class loader and cached the result.- Specified by:
findClass
in interfaceJavaClassLoader
- Parameters:
className
- of the class to find. Packages should be separated by '/' instead of '.'- Returns:
- the JavaClass instance, or null if it is not found
-
getCachedClasses
TODO: javacore appears to only list defined classes per class loader. If this changes in the future, this implementation must be changed.- Specified by:
getCachedClasses
in interfaceJavaClassLoader
- Returns:
- an iterator over the collection of classes which are defined in this JavaClassLoader or which were found by delegation to other JavaClassLoaders
- See Also:
-
getDefinedClasses
Description copied from interface:JavaClassLoader
Get the set of classes which are defined in this JavaClassLoader.- Specified by:
getDefinedClasses
in interfaceJavaClassLoader
- Returns:
- an iterator over the collection of classes which are defined in this JavaClassLoader
- See Also:
-
getObject
Description copied from interface:JavaClassLoader
Get the java.lang.ClassLoader instance associated with this class loader.- Specified by:
getObject
in interfaceJavaClassLoader
- Returns:
- a JavaObject representing the java.lang.ClassLoader instance associated with this class loader, or null if there is no Java class loader associated with this low-level class loader.
- Throws:
CorruptDataException
- See Also:
-
setObject
- Parameters:
object
-
-
internalGetClass
NON-DTFJ. For internal building purposes only.- Parameters:
className
-
-
getInternalObject
NON-DTFJ, don't use outside DTFJ. For internal building purposes only. -
addClass
NOT in DTFJ- Parameters:
name
-
-
addClass
NOT in DTFJ- Parameters:
name
-
-
getPointerID
NON-DTFJ
-