Interface ClassVisibilityChecker

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

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

    Modifier and Type
    Method
    Description
    boolean
    isServerClass(Class<?> clazz)
    Is the class a Server Class.
    boolean
    isSystemClass(Class<?> clazz)
    Is the class a System Class.
  • Method Details

    • isSystemClass

      boolean isSystemClass(Class<?> clazz)
      Is the class a System Class. A System class is a class that is visible to a webapplication, 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

      boolean isServerClass(Class<?> clazz)
      Is the class a Server Class. A Server class is a class that is part of the implementation of the server and is NIT visible to a webapplication. The web application may provide it's 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.