public class URLClassLoaderResourceProvider extends Object implements WebResourceLocationProvider
WebResourceLocationProvider will try to identify the location of web resources by examining
the URLs the classloader uses for loading classes. This will only work if the classloader is a URLClassLoader.Sortable.Comparator| Constructor and Description |
|---|
URLClassLoaderResourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecedence()
An integer precedence value that indicates how favorable the
implementation considers itself amongst alternatives.
|
URL |
getWebResource(String path,
ClassLoader classLoader)
Returns the location of a web resource.
|
public int getPrecedence()
SortablegetPrecedence in interface Sortablepublic URL getWebResource(String path, ClassLoader classLoader)
WebResourceLocationProvidergetWebResource in interface WebResourceLocationProviderpath - The path of the resource to lookup (e.g. "/WEB-INF/web.xml")classLoader - The classloader to use for resource lookupsnull if the location could not be foundCopyright © 2008-2013 Seam Framework. All Rights Reserved.