public class MultiResourceFinder extends ResourceFinder
ResourceFinder that finds its resources through a collection of
other ResourceFinders.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<ResourceFinder> |
resourceFinders |
EMPTY_RESOURCE_FINDER| Constructor and Description |
|---|
MultiResourceFinder(java.util.Collection<ResourceFinder> resourceFinders) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
findResource(java.lang.String resourceName)
Find a resource by name and return it as a
Resource object. |
findResourceAsStreamprivate final java.util.Collection<ResourceFinder> resourceFinders
public MultiResourceFinder(java.util.Collection<ResourceFinder> resourceFinders)
resourceFinders - The entries of the "path"public final Resource findResource(java.lang.String resourceName)
ResourceFinderResource object.findResource in class ResourceFinderresourceName - Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class"null if the resource could not be found