Package org.drools.util
Class ResourceHelper
java.lang.Object
org.drools.util.ResourceHelper
Utility that provide classPath scan to retrieve resources
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<File>getFileResourcesByExtension(String extension) Scan into classpath folders to find resources with the required extensionstatic Collection<File>getFileResourcesFromDirectory(File directory, Pattern pattern) Scan folder to find resources that match with patternstatic Collection<String>getResourcesByExtension(String extension) Scan into classpath folders to find resources with the required extensionstatic Collection<String>getResourcesFromDirectory(File directory, Pattern pattern) Scan folder to find resources that match with pattern
-
Method Details
-
getFileResourcesByExtension
Scan into classpath folders to find resources with the required extension- Parameters:
extension- to find- Returns:
- stream of matching resources
-
getResourcesByExtension
Scan into classpath folders to find resources with the required extension- Parameters:
extension- to find- Returns:
- stream of matching resources
-
getFileResourcesFromDirectory
Scan folder to find resources that match with pattern- Parameters:
directory- where to start the searchpattern- to find- Returns:
- stream of matching resources
-
getResourcesFromDirectory
Scan folder to find resources that match with pattern- Parameters:
directory- where to start the searchpattern- to find- Returns:
- stream of matching resources
-