Web Site

org.codehaus.janino.util.resource
Class MultiResourceFinder

java.lang.Object
  extended byorg.codehaus.janino.util.resource.ResourceFinder
      extended byorg.codehaus.janino.util.resource.MultiResourceFinder
Direct Known Subclasses:
LazyMultiResourceFinder

public class MultiResourceFinder
extends ResourceFinder

A ResourceFinder that finds its resources through a collection of other ResourceFinders.


Nested Class Summary
 
Nested classes inherited from class org.codehaus.janino.util.resource.ResourceFinder
ResourceFinder.FileResource, ResourceFinder.Resource
 
Field Summary
static ResourceFinder EMPTY_RESOURCE_FINDER
          This one's useful when a resource finder is required, but cannot be created for some reason.
 
Constructor Summary
MultiResourceFinder(Collection resourceFinders)
           
 
Method Summary
 ResourceFinder.Resource findResource(String resourceName)
          Find a resource by name and return it as a ResourceFinder.Resource object.
 
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_RESOURCE_FINDER

public static final ResourceFinder EMPTY_RESOURCE_FINDER
This one's useful when a resource finder is required, but cannot be created for some reason.

Constructor Detail

MultiResourceFinder

public MultiResourceFinder(Collection resourceFinders)
Parameters:
resourceFinders - The entries of the "path"
Method Detail

findResource

public ResourceFinder.Resource findResource(String resourceName)
Description copied from class: ResourceFinder
Find a resource by name and return it as a ResourceFinder.Resource object.

Specified by:
findResource in class ResourceFinder
Parameters:
resourceName - Slash-separated name that identifies the resource
Returns:
null if the resource could not be found

Web Site