org.jboss.seam.faces.projectstage
Class DirectoryNameWebXmlLocator
java.lang.Object
org.jboss.seam.faces.projectstage.DirectoryNameWebXmlLocator
- All Implemented Interfaces:
- org.jboss.seam.faces.projectstage.WebXmlLocator, org.jboss.solder.util.Sortable
public class DirectoryNameWebXmlLocator
- extends Object
- implements org.jboss.seam.faces.projectstage.WebXmlLocator
This implementation of WebXmlLocator will try to identify the location of web.xml 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 URLClassLoaderWebXmlLocator 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 |
DirectoryNameWebXmlLocator
public DirectoryNameWebXmlLocator()
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in interface org.jboss.solder.util.Sortable
getWebXmlLocation
public URL getWebXmlLocation(ClassLoader classLoader)
- Specified by:
getWebXmlLocation in interface org.jboss.seam.faces.projectstage.WebXmlLocator
Copyright © 2009-2011 Seam Framework. All Rights Reserved.