public class LoggingResourceVisitor extends Object implements ResourceVisitor
ResourceVisitor
which logs the files and directories it traverses, then simply delegate to another given visitor.Modifier and Type | Method and Description |
---|---|
static LoggingResourceVisitor |
log(ResourceVisitor visitor) |
boolean |
visitDirectory(Resource resource)
Determines if we should visit this directory resource.
|
void |
visitFile(Resource resource)
Implementations can decide to do anything with the file; note that
ResourceVisitor.visitDirectory(Resource) is
NOT called for files. |
public static LoggingResourceVisitor log(ResourceVisitor visitor)
public boolean visitDirectory(Resource resource)
ResourceVisitor
ResourceVisitor.visitFile(Resource)
is
NOT called for directories.visitDirectory
in interface ResourceVisitor
public void visitFile(Resource resource)
ResourceVisitor
ResourceVisitor.visitDirectory(Resource)
is
NOT called for files.visitFile
in interface ResourceVisitor
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.