Interface ClassVisibilityChecker

All Known Subinterfaces:
WebAppClassLoader.Context
All Known Implementing Classes:
CachingWebAppClassLoader, OSGiWebappClassLoader, WebAppClassLoader, WebAppContext

public interface ClassVisibilityChecker
Interface to be implemented by classes capable of checking class visibility for a context.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isHiddenClass(Class<?> clazz)
    Is the class a Hidden (Server) Class.
    boolean
    Is the class a Protected (System) Class.
    default boolean
    isServerClass(Class<?> clazz)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default boolean
    isSystemClass(Class<?> clazz)
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isProtectedClass

      boolean isProtectedClass(Class<?> clazz)
      Is the class a Protected (System) Class. A System class is a class that is visible to a web application, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes
      Parameters:
      clazz - The fully qualified name of the class.
      Returns:
      True if the class is a system class.
    • isHiddenClass

      boolean isHiddenClass(Class<?> clazz)
      Is the class a Hidden (Server) Class. A Server class is a class that is part of the implementation of the server and is NOT visible to a web application. The web application may provide its own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes
      Parameters:
      clazz - The fully qualified name of the class.
      Returns:
      True if the class is a server class.
    • isSystemClass

      @Deprecated(forRemoval=true, since="12.0.9") default boolean isSystemClass(Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is the class a System Class. A System class is a class that is visible to a web application, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes
      Parameters:
      clazz - The fully qualified name of the class.
      Returns:
      True if the class is a system class.
    • isServerClass

      @Deprecated(forRemoval=true, since="12.0.9") default boolean isServerClass(Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is the class a Server Class. A Server class is a class that is part of the implementation of the server and is NOT visible to a web application. The web application may provide its own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes
      Parameters:
      clazz - The fully qualified name of the class.
      Returns:
      True if the class is a server class.