Guvnor - Services Backend 6.2.0.CR2

org.guvnor.common.services.backend.file
Class FileDiscoveryServiceImpl

java.lang.Object
  extended by 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
FileDiscoveryServiceImpl()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiscoveryServiceImpl

public FileDiscoveryServiceImpl()
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: FileDiscoveryService
Discover files

Specified by:
discoverFiles in interface FileDiscoveryService
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: FileDiscoveryService
Discover files. Convenience method excluding sub-folders

Specified by:
discoverFiles in interface FileDiscoveryService
Parameters:
pathToSearch - The root Path to search. Sub-folders are not included.
filter - A filter to restrict the matched files.
Returns:

Guvnor - Services Backend 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.