oracle.adf.view.faces.resource
Class AggregatingResourceLoader

java.lang.Object
  extended byoracle.adf.view.faces.resource.ResourceLoader
      extended byoracle.adf.view.faces.resource.DynamicResourceLoader
          extended byoracle.adf.view.faces.resource.AggregatingResourceLoader

public class AggregatingResourceLoader
extends DynamicResourceLoader

A resource loader implementation which combines multiple resources into a single stream. This version leverages the DynamicResourceLoader.


Nested Class Summary
 class AggregatingResourceLoader.AggregatingURLStreamHandler
          This is a Stream Handler which can be used to construct a URL that is an Aggregate of a list of other urls.
 
Constructor Summary
AggregatingResourceLoader(java.lang.String path, java.lang.String[] paths, ResourceLoader target)
          Creates a new AggregatingResourceLoader.
AggregatingResourceLoader(java.lang.String path, java.lang.String[] paths, ResourceLoader target, ResourceLoader parent)
          Creates a new AggregatingResourceLoader.
 
Method Summary
protected  java.net.URL getURL(java.lang.String path)
          Returns a URL which is an aggregate of all the paths.
 void setSeparator(java.lang.String separator)
          Sets the separator to use in between streams.
 
Methods inherited from class oracle.adf.view.faces.resource.DynamicResourceLoader
findResource
 
Methods inherited from class oracle.adf.view.faces.resource.ResourceLoader
getContentType, getNullResourceLoader, getParent, getResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatingResourceLoader

public AggregatingResourceLoader(java.lang.String path,
                                 java.lang.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(java.lang.String path,
                                 java.lang.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
Method Detail

setSeparator

public void setSeparator(java.lang.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 java.net.URL getURL(java.lang.String path)
                       throws java.io.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:
java.io.IOException - when something bad happens


Copyright © 2003-2007 Oracle Corporation. All Rights Reserved.