public class DirectoryNameResourceProvider extends Object implements WebResourceLocationProvider
This implementation of WebResourceLocationProvider will try to identify the location of web resources by searching
for a known resource on the classpath and trying to find the WEB-INF directory in its path name. This will
typically work if the known resource in located in a JAR file inside the WEB-INF/lib directory.
Compared to URLClassLoaderResourceProvider this implementation works fine even for containers like JBoss AS6 and AS7.
Sortable.Comparator| Constructor and Description |
|---|
DirectoryNameResourceProvider() |
public int getPrecedence()
getPrecedence in interface Sortablepublic URL getWebResource(String path, ClassLoader classLoader)
getWebResource in interface WebResourceLocationProviderCopyright © 2008-2013 JBoss by Red Hat. All Rights Reserved.