Package org.eclipse.jetty.webapp
Interface WebAppClassLoader.Context
-
- All Known Implementing Classes:
WebAppContext
- Enclosing class:
- WebAppClassLoader
public static interface WebAppClassLoader.ContextThe Context in which the classloader operates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetExtraClasspath()PermissionCollectiongetPermissions()booleanisParentLoaderPriority()booleanisServerClass(Class<?> clazz)Is the class a Server Class.booleanisServerResource(String name, URL parent_url)booleanisSystemClass(Class<?> clazz)Is the class a System Class.booleanisSystemResource(String name, URL webapp_url)org.eclipse.jetty.util.resource.ResourcenewResource(String urlOrPath)Convert a URL or path to a Resource.
-
-
-
Method Detail
-
newResource
org.eclipse.jetty.util.resource.Resource newResource(String urlOrPath) throws IOException
Convert a URL or path to a Resource. The default implementation is a wrapper forResource.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.
-
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.
-
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
String getExtraClasspath()
-
-