java.lang.Object
com.ibm.dtfj.java.j9.JavaClassLoader
- All Implemented Interfaces:
JavaClassLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassID(long id) booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Find a named class within this class loader.When a ClassLoader successfully delegates a findClass() request to another ClassLoader, the result of the delegation must be cached within the internal structure so that the VM does not make repeated requests for the same class.Get the set of classes which are defined in this JavaClassLoader.longgetID()Get the java.lang.ClassLoader instance associated with this class loader.inthashCode()Answers an integer hash code for the receiver.
-
Constructor Details
-
JavaClassLoader
-
-
Method Details
-
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:
-
getCachedClasses
Description copied from interface:JavaClassLoaderWhen a ClassLoader successfully delegates a findClass() request to another ClassLoader, the result of the delegation must be cached within the internal structure so that the VM does not make repeated requests for the same class.- 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:
-
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:
name- of the class to find. Packages should be separated by '/' instead of '.'- Returns:
- the JavaClass instance, or null if it is not found
- Throws:
CorruptDataException
-
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:
-
getID
public long getID() -
addClassID
public void addClassID(long id) -
equals
Description copied from class:java.lang.ObjectCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Specified by:
equalsin interfaceJavaClassLoader- Overrides:
equalsin classObject- Parameters:
obj- Object the object to compare with this object.- Returns:
- boolean
trueif the object is the same as this objectfalseif it is different from this object. - See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method.- Specified by:
hashCodein interfaceJavaClassLoader- Overrides:
hashCodein classObject- Returns:
- the receiver's hash.
- See Also:
-