org.apache.myfaces.trinidad.resource

## Class SkinResourceLoader

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `SkinResourceLoader()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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-2017 The Apache Software Foundation. All Rights Reserved.