org.jboss.seam.faces.projectstage
Class DirectoryNameWebXmlLocator

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.solder.util.Sortable
org.jboss.solder.util.Sortable.Comparator
 
Constructor Summary
DirectoryNameWebXmlLocator()
           
 
Method Summary
 int getPrecedence()
           
 URL getWebXmlLocation(ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryNameWebXmlLocator

public DirectoryNameWebXmlLocator()
Method Detail

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.