org.apache.myfaces.trinidad.resource
Class SkinResourceLoader

java.lang.Object
  extended by org.apache.myfaces.trinidad.resource.SkinResourceLoader

public class SkinResourceLoader
extends Object

Non-Trinidad skin resource loader implementations should extend this class and override findResources to specify where from where to load skin resources. We will find all overridden classes by calling

 List<SkinResourceLoader> urlProviders = ClassLoaderUtils.getServices(
                                 "org.apache.myfaces.trinidad.resource.SkinResourceLoader");
 


Constructor Summary
SkinResourceLoader()
           
 
Method Summary
 Iterator<URL> findResources(javax.faces.context.ExternalContext context, String filename)
          Returns an iterator of URL objects representing all the resources with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinResourceLoader

public SkinResourceLoader()
Method Detail

findResources

public Iterator<URL> findResources(javax.faces.context.ExternalContext context,
                                   String filename)
Returns an iterator of URL objects representing all the resources with the given name.

Parameters:
context - The ExternalContext
filename - The filename of the resource to find, e.g., "trinidad-skins.xml"
Returns:
An iterator of URL objects for the resources. Returns an empty iterator if no resources were found.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.