org.guvnor.common.services.backend.file
@ApplicationScoped public class FileDiscoveryServiceImpl extends Object implements FileDiscoveryService
Constructor and Description |
---|
FileDiscoveryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<org.kie.commons.java.nio.file.Path> |
discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch,
org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter)
Discover files.
|
Collection<org.kie.commons.java.nio.file.Path> |
discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch,
org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter,
boolean recursive)
Discover files
|
public Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch, org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter, boolean recursive)
FileDiscoveryService
discoverFiles
in interface FileDiscoveryService
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 scannedpublic Collection<org.kie.commons.java.nio.file.Path> discoverFiles(org.kie.commons.java.nio.file.Path pathToSearch, org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter)
FileDiscoveryService
discoverFiles
in interface FileDiscoveryService
pathToSearch
- The root Path to search. Sub-folders are not included.filter
- A filter to restrict the matched files.Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.