Interface IClassTracker


public interface IClassTracker
Class trackers are responsible for interacting with the class loading process to for the purposes of tracking class load activity and class load restrictions. This service component is entirely optional and services can elect to return null if the platform does not support this functionality.
  • Method Summary

    Modifier and Type
    Method
    Description
    Check whether the specified class name is subject to any restrictions in the context of this service
    boolean
    isClassLoaded(String className)
    Check whether the specified class was already loaded by the service classloader
    void
    Register an invalid class with the service classloader
  • Method Details

    • registerInvalidClass

      void registerInvalidClass(String className)
      Register an invalid class with the service classloader
      Parameters:
      className - invalid class name
    • isClassLoaded

      boolean isClassLoaded(String className)
      Check whether the specified class was already loaded by the service classloader
      Parameters:
      className - class name to check
      Returns:
      true if the class was already loaded
    • getClassRestrictions

      String getClassRestrictions(String className)
      Check whether the specified class name is subject to any restrictions in the context of this service
      Parameters:
      className - class name to check
      Returns:
      comma-separated list of restrictions, empty string if no restrictions apply