Module openj9.dtfj

Class DTFJJavaClassloader

java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaClassloader
All Implemented Interfaces:
JavaClassLoader

public class DTFJJavaClassloader extends Object implements JavaClassLoader
  • Constructor Summary

    Constructors
    Constructor
    Description
    DTFJJavaClassloader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer pointer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares 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.
    Get the java.lang.ClassLoader instance associated with this class loader.
    int
    Answers an integer hash code for the receiver.

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DTFJJavaClassloader

      public DTFJJavaClassloader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer pointer)
  • Method Details

    • findClass

      public JavaClass findClass(String name) throws CorruptDataException
      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 interface JavaClassLoader
      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
    • getCachedClasses

      public Iterator getCachedClasses()
      Description copied from interface: JavaClassLoader
      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.
      Specified by:
      getCachedClasses in interface JavaClassLoader
      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

      public Iterator getDefinedClasses()
      Description copied from interface: JavaClassLoader
      Get the set of classes which are defined in this JavaClassLoader.
      Specified by:
      getDefinedClasses in interface JavaClassLoader
      Returns:
      an iterator over the collection of classes which are defined in this JavaClassLoader
      See Also:
    • getObject

      public JavaObject getObject() throws CorruptDataException
      Description copied from interface: JavaClassLoader
      Get the java.lang.ClassLoader instance associated with this class loader.
      Specified by:
      getObject in interface JavaClassLoader
      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:
    • equals

      public boolean equals(Object obj)
      Description copied from class: java.lang.Object
      Compares 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:
      equals in interface JavaClassLoader
      Overrides:
      equals in class Object
      Parameters:
      obj - Object the object to compare with this object.
      Returns:
      boolean true if the object is the same as this object false if it is different from this object.
      See Also:
    • hashCode

      public int hashCode()
      Description copied from class: java.lang.Object
      Answers an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.
      Specified by:
      hashCode in interface JavaClassLoader
      Overrides:
      hashCode in class Object
      Returns:
      the receiver's hash.
      See Also: