public class FileResourceCollectorVisitor extends PredicatedResourceVisitor
PredicatedResourceVisitor
which simply "collects" file resources matching a given pattern.
Never collects directories, but lets you control which directories to traverses for efficiency. If you need finer-grained control,
use PredicatedResourceVisitor
or implement your own ResourceVisitor
Modifier | Constructor and Description |
---|---|
protected |
FileResourceCollectorVisitor(com.google.common.base.Predicate<Resource> visitDirectory,
com.google.common.base.Predicate<Resource> applyToFile) |
Modifier and Type | Method and Description |
---|---|
Collection<Resource> |
getCollectedResources() |
static FileResourceCollectorVisitor |
on(com.google.common.base.Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
on(com.google.common.base.Predicate<Resource> visitDirectory,
com.google.common.base.Predicate<Resource> applyToFile) |
getFunction, onAllMatchingFiles, visitDirectory, visitFile, with, with, with, with
public static FileResourceCollectorVisitor on(com.google.common.base.Predicate<Resource> applyToFile)
public static FileResourceCollectorVisitor on(com.google.common.base.Predicate<Resource> visitDirectory, com.google.common.base.Predicate<Resource> applyToFile)
public Collection<Resource> getCollectedResources()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.