Package com.axelor.common.reflections
Class ResourceFinder
java.lang.Object
com.axelor.common.reflections.ResourceFinder
The
ResourceFinder class provides fluent api to search for resources.-
Method Summary
Modifier and TypeMethodDescriptionFind with the given name pattern.Find with the given URL pattern.find()Search the resources by partial match usingMatcher.find()call.match()Search the resources by full pattern match usingMatcher.matches()call.
-
Method Details
-
byName
Find with the given name pattern.- Parameters:
pattern- the name pattern- Returns:
- the same finder
-
byURL
Find with the given URL pattern.- Parameters:
pattern- the URL pattern- Returns:
- the same finder
-
match
Search the resources by full pattern match usingMatcher.matches()call.- Returns:
- list of URL objects
-
find
Search the resources by partial match usingMatcher.find()call.- Returns:
- list of URL objects
-