public final class ResourceFinder extends Object
ResourceFinder class provides fluent api to search for
resources.| Modifier and Type | Method and Description |
|---|---|
ResourceFinder |
byName(String pattern)
Find with the given name pattern.
|
ResourceFinder |
byURL(String pattern)
Find with the given URL pattern.
|
com.google.common.collect.ImmutableList<URL> |
find()
Search the resources by partial match using
Matcher.find()
call. |
com.google.common.collect.ImmutableList<URL> |
match()
Search the resources by full pattern match using
Matcher.matches() call. |
public ResourceFinder byName(String pattern)
pattern - the name patternpublic ResourceFinder byURL(String pattern)
pattern - the URL patternpublic com.google.common.collect.ImmutableList<URL> match()
Matcher.matches() call.public com.google.common.collect.ImmutableList<URL> find()
Matcher.find()
call.