org.jboss.seam.faces.projectstage
Class URLClassLoaderWebXmlLocator

java.lang.Object
  extended by org.jboss.seam.faces.projectstage.URLClassLoaderWebXmlLocator
All Implemented Interfaces:
org.jboss.seam.faces.projectstage.WebXmlLocator, org.jboss.solder.util.Sortable

public class URLClassLoaderWebXmlLocator
extends Object
implements org.jboss.seam.faces.projectstage.WebXmlLocator

This implementation of WebXmlLocator will try to identify the location of web.xml by examining the URLs the classloader uses for loading classes. This will only work if the classloader is a URLClassLoader.

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
URLClassLoaderWebXmlLocator()
           
 
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

URLClassLoaderWebXmlLocator

public URLClassLoaderWebXmlLocator()
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.