Class MultiResourceFinder
- java.lang.Object
-
- org.codehaus.janino.util.resource.ResourceFinder
-
- org.codehaus.janino.util.resource.MultiResourceFinder
-
- Direct Known Subclasses:
LazyMultiResourceFinder
public class MultiResourceFinder extends ResourceFinder
AResourceFinder
that finds its resources through a collection of otherResourceFinder
s.
-
-
Field Summary
-
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description MultiResourceFinder(Collection<ResourceFinder> resourceFinders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
findResource(String resourceName)
Find a resource by name and return it as aResource
object.-
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
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 aResource
object.- Specified by:
findResource
in classResourceFinder
- Parameters:
resourceName
- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class
"- Returns:
null
if the resource could not be found
-
-