org.apache.myfaces.tobago.facelets
Class MetaInfResourcesClasspathResourceResolver

java.lang.Object
  extended by com.sun.facelets.impl.DefaultResourceResolver
      extended by org.apache.myfaces.tobago.facelets.MetaInfResourcesClasspathResourceResolver
All Implemented Interfaces:
com.sun.facelets.impl.ResourceResolver

public class MetaInfResourcesClasspathResourceResolver
extends com.sun.facelets.impl.DefaultResourceResolver

Provides facelets from the directory "META-INF/resources/" of any jar file in the classpath. With the Servlet 3.0 specification this is no longer needed.

To configure this ResourceResolver put this code into the web.xml file:

  <context-param>
    <param-name>facelets.RESOURCE_RESOLVER</param-name>
    <param-value>
        org.apache.myfaces.tobago.facelets.MetaInfResourcesClasspathResourceResolver
    </param-value>
  </context-param>
 

Date: 12.05.2009 Time: 12:25:31


Constructor Summary
MetaInfResourcesClasspathResourceResolver()
           
 
Method Summary
 URL resolveUrl(String path)
           
 
Methods inherited from class com.sun.facelets.impl.DefaultResourceResolver
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaInfResourcesClasspathResourceResolver

public MetaInfResourcesClasspathResourceResolver()
Method Detail

resolveUrl

public URL resolveUrl(String path)
Specified by:
resolveUrl in interface com.sun.facelets.impl.ResourceResolver
Overrides:
resolveUrl in class com.sun.facelets.impl.DefaultResourceResolver


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.