Package com.axelor.common.reflections
Class ResourceFinder
- java.lang.Object
-
- com.axelor.common.reflections.ResourceFinder
-
public final class ResourceFinder extends Object
TheResourceFinder
class provides fluent api to search for resources.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 usingMatcher.find()
call.List<URL>
match()
Search the resources by full pattern match usingMatcher.matches()
call.
-
-
-
Method Detail
-
byName
public ResourceFinder byName(String pattern)
Find with the given name pattern.- Parameters:
pattern
- the name pattern- Returns:
- the same finder
-
byURL
public ResourceFinder byURL(String pattern)
Find with the given URL pattern.- Parameters:
pattern
- the URL pattern- Returns:
- the same finder
-
match
public List<URL> match()
Search the resources by full pattern match usingMatcher.matches()
call.- Returns:
- list of URL objects
-
find
public List<URL> find()
Search the resources by partial match usingMatcher.find()
call.- Returns:
- list of URL objects
-
-