public class DirectoryNameWebXmlLocator extends Object implements 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.
Sortable.Comparator
Constructor and Description |
---|
DirectoryNameWebXmlLocator() |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence()
An integer precedence value that indicates how favorable the
implementation considers itself amongst alternatives.
|
URL |
getWebXmlLocation(ClassLoader classLoader)
Returns the guessed location of
web.xml . |
public int getPrecedence()
Sortable
getPrecedence
in interface Sortable
public URL getWebXmlLocation(ClassLoader classLoader)
WebXmlLocator
web.xml
.getWebXmlLocation
in interface WebXmlLocator
classLoader
- The classloader to use for resource lookupsweb.xml
or null
if the location could not be identifiedCopyright © 2008–2013 Seam Framework. All rights reserved.