org.jboss.solder.servlet.resource
Class DirectoryNameResourceProvider
java.lang.Object
org.jboss.solder.servlet.resource.DirectoryNameResourceProvider
- All Implemented Interfaces:
- org.jboss.solder.servlet.resource.WebResourceLocationProvider, org.jboss.solder.util.Sortable
public class DirectoryNameResourceProvider
- extends Object
- implements org.jboss.solder.servlet.resource.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.
- Author:
- Christian Kaltepoth
| Nested classes/interfaces inherited from interface org.jboss.solder.util.Sortable |
org.jboss.solder.util.Sortable.Comparator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryNameResourceProvider
public DirectoryNameResourceProvider()
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in interface org.jboss.solder.util.Sortable
getWebResource
public URL getWebResource(String path,
ClassLoader classLoader)
- Specified by:
getWebResource in interface org.jboss.solder.servlet.resource.WebResourceLocationProvider
Copyright © 2008-2011 Seam Framework. All Rights Reserved.