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.
|
List<URL> |
find()
Search the resources by partial match using
Matcher.find() call. |
List<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 List<URL> match()
Matcher.matches()
call.public List<URL> find()
Matcher.find()
call.