Class MultiResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.MultiResourceFinder
- Direct Known Subclasses:
LazyMultiResourceFinder
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ResourcefindResource(String resourceName) Find a resource by name and return it as aResourceobject.Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
Constructor Details
-
MultiResourceFinder
- Parameters:
resourceFinders- The entries of the "path"
-
-
Method Details
-
findResource
Description copied from class:ResourceFinderFind a resource by name and return it as aResourceobject.- Specified by:
findResourcein classResourceFinder- Parameters:
resourceName- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"- Returns:
nullif the resource could not be found
-