janino.net

org.codehaus.janino.util.resource
Class MultiResourceFinder

java.lang.Object
  extended by org.codehaus.janino.util.resource.ResourceFinder
      extended by org.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.


Field Summary
 
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
 
Constructor Summary
MultiResourceFinder(Collection<ResourceFinder> resourceFinders)
           
 
Method Summary
 Resource findResource(String resourceName)
          Find a resource by name and return it as a 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
 

Constructor Detail

MultiResourceFinder

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

findResource

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

Specified by:
findResource in class ResourceFinder
Parameters:
resourceName - Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
Returns:
null if the resource could not be found

janino.net