Class FileDiscoveryServiceImpl
- java.lang.Object
-
- org.guvnor.common.services.backend.file.FileDiscoveryServiceImpl
-
- All Implemented Interfaces:
FileDiscoveryService
@ApplicationScoped public class FileDiscoveryServiceImpl extends Object implements FileDiscoveryService
Default implementation of FileDiscoveryService
-
-
Constructor Summary
Constructors Constructor Description FileDiscoveryServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.uberfire.java.nio.file.Path>discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter)Discover files.Collection<org.uberfire.java.nio.file.Path>discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter, boolean recursive)Discover files
-
-
-
Method Detail
-
discoverFiles
public Collection<org.uberfire.java.nio.file.Path> discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter, boolean recursive)
Description copied from interface:FileDiscoveryServiceDiscover files- Specified by:
discoverFilesin interfaceFileDiscoveryService- Parameters:
pathToSearch- The root Path to search. Sub-folders are not included.filter- A filter to restrict the matched files.recursive- True is sub-folders are to be scanned- Returns:
-
discoverFiles
public Collection<org.uberfire.java.nio.file.Path> discoverFiles(org.uberfire.java.nio.file.Path pathToSearch, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter)
Description copied from interface:FileDiscoveryServiceDiscover files. Convenience method excluding sub-folders- Specified by:
discoverFilesin interfaceFileDiscoveryService- Parameters:
pathToSearch- The root Path to search. Sub-folders are not included.filter- A filter to restrict the matched files.- Returns:
-
-