Interface ClassLoading

All Known Subinterfaces:
ClasspathAgentMBean
All Known Implementing Classes:
ClassDiagnostic, ClasspathAgent

public interface ClassLoading
This interface identifies the methods which are necessary to get the loaded classes.
Since:
3.0 (27-Oct-2025)
Author:
Oli B.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String[]
    Get the classpath.
    Class<?>[]
    Returns the classes which were loaded by the classloader.
    Returns the classes which were loaded by the classloader.
  • Method Details

    • getClasspath

      default String[] getClasspath()
      Get the classpath.
      Returns:
      classpath
    • getLoadedClasses

      Class<?>[] getLoadedClasses()
      Returns the classes which were loaded by the classloader.

      NOTE: Although the 'jconsole' displays the classes as 'unavailable' do not remove it. It is used by the ClasspathAgent class to provide the loaded classes.

      Returns:
      the classes as string array
    • getLoadedClassnames

      @Description("returns an array of all loaded classes") String[] getLoadedClassnames()
      Returns the classes which were loaded by the classloader. The loaded packages are returned as string array so that it can be displayed by the 'jconsole'.
      Returns:
      the classnames as string array