java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaClassLoader
- All Implemented Interfaces:
JavaClassLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNOT in DTFJvoidaddClass(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.voidsetObject(JCJavaObject object) Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.ibm.dtfj.java.JavaClassLoader
equals, hashCode
-
Constructor Details
-
JCJavaClassLoader
- Throws:
JCInvalidArgumentsException
-
-
Method Details
-
findClass
Description copied from interface:JavaClassLoaderFind 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:
findClassin 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:
getCachedClassesin 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:JavaClassLoaderGet the set of classes which are defined in this JavaClassLoader.- Specified by:
getDefinedClassesin interfaceJavaClassLoader- Returns:
- an iterator over the collection of classes which are defined in this JavaClassLoader
- See Also:
-
getObject
Description copied from interface:JavaClassLoaderGet the java.lang.ClassLoader instance associated with this class loader.- Specified by:
getObjectin 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
-