org.jboss.solder.servlet.resource
Interface WebResourceLocationProvider

All Superinterfaces:
Sortable

public interface WebResourceLocationProvider
extends Sortable

SPI for finding the location of web resources without using ServletContext.

Author:
Christian Kaltepoth

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.solder.util.Sortable
Sortable.Comparator
 
Method Summary
 java.net.URL getWebResource(java.lang.String path, java.lang.ClassLoader classLoader)
          Returns the location of a web resource.
 
Methods inherited from interface org.jboss.solder.util.Sortable
getPrecedence
 

Method Detail

getWebResource

java.net.URL getWebResource(java.lang.String path,
                            java.lang.ClassLoader classLoader)
Returns the location of a web resource. The path must begin with a / and is interpreted as relative to the current context root.

Parameters:
path - The path of the resource to lookup (e.g. "/WEB-INF/web.xml")
classLoader - The classloader to use for resource lookups
Returns:
The location of the resource or null if the location could not be found


Copyright © 2008-2012 Seam Framework. All Rights Reserved.