Interface WebAppClassLoader.Context

All Superinterfaces:
ClassVisibilityChecker
All Known Implementing Classes:
AntWebAppContext, MavenWebAppContext, WebAppContext
Enclosing class:
WebAppClassLoader

public static interface WebAppClassLoader.Context extends ClassVisibilityChecker
The Context in which the classloader operates.
  • Method Details

    • newResource

      Resource newResource(String urlOrPath) throws IOException
      Convert a URL or path to a Resource. The default implementation is a wrapper for Resource.newResource(String).
      Parameters:
      urlOrPath - The URL or path to convert
      Returns:
      The Resource for the URL/path
      Throws:
      IOException - The Resource could not be created.
    • getPermissions

      PermissionCollection getPermissions()
      Returns:
      Returns the permissions.
    • isParentLoaderPriority

      boolean isParentLoaderPriority()
      Returns:
      True if the classloader should delegate first to the parent classloader (standard java behaviour) or false if the classloader should first try to load from WEB-INF/lib or WEB-INF/classes (servlet spec recommendation).
    • getExtraClasspath

      List<Resource> getExtraClasspath()
    • isServerResource

      boolean isServerResource(String name, URL parentUrl)
    • isSystemResource

      boolean isSystemResource(String name, URL webappUrl)