org.eclipse.jetty.webapp
接口 WebAppClassLoader.Context

所有已知实现类:
TemplateContext, WebAppContext
包容类:
WebAppClassLoader

public static interface WebAppClassLoader.Context

The Context in which the classloader operates.


方法摘要
 String getExtraClasspath()
           
 PermissionCollection getPermissions()
           
 boolean isParentLoaderPriority()
           
 boolean isServerClass(String clazz)
          Is the class a Server Class.
 boolean isSystemClass(String clazz)
          Is the class a System Class.
 Resource newResource(String urlOrPath)
          Convert a URL or path to a Resource.
 

方法详细信息

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).

参数:
urlOrPath - The URL or path to convert
返回:
The Resource for the URL/path
抛出:
IOException - The Resource could not be created.

getPermissions

PermissionCollection getPermissions()
返回:
Returns the permissions.

isSystemClass

boolean isSystemClass(String 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

参数:
clazz - The fully qualified name of the class.
返回:
True if the class is a system class.

isServerClass

boolean isServerClass(String 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

参数:
clazz - The fully qualified name of the class.
返回:
True if the class is a server class.

isParentLoaderPriority

boolean isParentLoaderPriority()
返回:
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

String getExtraClasspath()


Copyright © 2013. All Rights Reserved.