Interface IClassLoader

  • All Superinterfaces:
    IInstance, IObject, java.io.Serializable
    All Known Implementing Classes:
    ClassLoaderImpl

    public interface IClassLoader
    extends IInstance
    An interface for class loader.
    No Implement:
    • Method Detail

      • getRetainedHeapSizeOfObjects

        long getRetainedHeapSizeOfObjects​(boolean calculateIfNotAvailable,
                                          boolean calculateMinRetainedSize,
                                          IProgressListener listener)
                                   throws SnapshotException
        Returns the retained size of all objects and classes loaded by this class loader.
        Parameters:
        calculateIfNotAvailable - if false only return a cached version of the size
        calculateMinRetainedSize - if true then when calculating use an approximation
        listener - to indicate progress and errors
        Returns:
        the retained size, negative if approximate
        Throws:
        SnapshotException
      • getDefinedClasses

        java.util.List<IClass> getDefinedClasses()
                                          throws SnapshotException
        Returns the classes defined by this class loader instance.
        Returns:
        a list of classes defined by this class loader
        Throws:
        SnapshotException - if there is a problem retrieving the information