Package | Description |
---|---|
info.magnolia.resourceloader.util |
Modifier and Type | Class and Description |
---|---|
class |
FileResourceCollectorVisitor
A
PredicatedResourceVisitor which simply "collects" file resources matching a given pattern. |
Modifier and Type | Method and Description |
---|---|
static PredicatedResourceVisitor |
PredicatedResourceVisitor.onAllMatchingFiles(com.google.common.base.Predicate<Resource> applyToFile,
com.google.common.base.Function<Resource,Void> function)
Traverses all directories, and applies the given
Function to all files, according to applyToFile . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(com.google.common.base.Function<Resource,Void> function)
Visits everything and applies the given
Function to everything. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(com.google.common.base.Predicate<Resource> visitAndApply,
com.google.common.base.Function<Resource,Void> function)
Visits according to the given
visitAndApply predicate and applies the given Function according to visitAndApply . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(com.google.common.base.Predicate<Resource> visitDirectory,
com.google.common.base.Predicate<Resource> applyFunction,
com.google.common.base.Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(com.google.common.base.Predicate<Resource> visitDirectory,
com.google.common.base.Predicate<Resource> applyToDirectory,
com.google.common.base.Predicate<Resource> applyToFile,
com.google.common.base.Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.