Skip navigation links
org.apache.myfaces.trinidad.resource
Class AggregatingResourceLoader
java.lang.Object
org.apache.myfaces.trinidad.resource.ResourceLoader
org.apache.myfaces.trinidad.resource.DynamicResourceLoader
org.apache.myfaces.trinidad.resource.AggregatingResourceLoader
-
public class AggregatingResourceLoader
- extends DynamicResourceLoader
A resource loader implementation which combines multiple resources into a single stream. This version leverages the DynamicResourceLoader.
| Method Summary |
protected URL |
getURL(String path)
Returns a URL which is an aggregate of all the paths. |
void |
setSeparator(String separator)
Sets the separator to use in between streams. |
AggregatingResourceLoader
public AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target,
ResourceLoader parent)
- Creates a new AggregatingResourceLoader.
- Parameters:
path - the aggregated resource path
paths - the target resource paths to aggregate
target - the resource loader use to find target resource paths
parent - the parent resource loader
AggregatingResourceLoader
public AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target)
- Creates a new AggregatingResourceLoader.
- Parameters:
path - the aggregated resource path
paths - the target resource paths to aggregate
target - the resource loader use to find target resource paths
setSeparator
public void setSeparator(String separator)
- Sets the separator to use in between streams. This will typically contain a newline character. By default the value is
null which implies no separator.
-
- Parameters:
separator - a string containing the separator characters
getURL
protected URL getURL(String path)
throws IOException
- Returns a URL which is an aggregate of all the paths.
-
- Specified by:
getURL in class DynamicResourceLoader
-
- Parameters:
path - the current path
- Returns:
- a aggregate url
- Throws:
IOException - when something bad happens
Skip navigation links
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.