Package | Description |
---|---|
info.magnolia.resourceloader | |
info.magnolia.resourceloader.util |
Modifier and Type | Method and Description |
---|---|
void |
ResourceOrigin.traverseWith(ResourceVisitor visitor)
Traverses this ResourceOrigin from the root, according to the given
ResourceVisitor . |
void |
AbstractResourceOrigin.traverseWith(ResourceVisitor visitor) |
void |
ResourceOrigin.watchForChanges(ResourceVisitor visitor)
Deprecated.
since 5.4.6 - use
ResourceOrigin.registerResourceChangeHandler(ResourceChangeHandler) instead. Current method is less preferable to
be used for resource changes monitoring because ResourceVisitor is not a suitable interface to communicate such changes. E.g. ResourceVisitor
has no API to provide the context of the change (which ResourceOrigin the change has happened at, what was the type of the change etc). Also ResourceVisitor requires
an instance of Resource - it is not usable to communicate deletion of resources. |
void |
AbstractResourceOrigin.watchForChanges(ResourceVisitor visitor)
Deprecated.
since 5.4.6 - use
AbstractResourceOrigin.registerResourceChangeHandler(ResourceChangeHandler) instead. See ResourceOrigin.watchForChanges(ResourceVisitor) JavaDoc for more details |
Modifier and Type | Class and Description |
---|---|
class |
FileResourceCollectorVisitor
A
PredicatedResourceVisitor which simply "collects" file resources matching a given pattern. |
class |
LoggingResourceVisitor
A
ResourceVisitor which logs the files and directories it traverses, then simply delegate to another given visitor. |
class |
PredicatedResourceVisitor
|
Modifier and Type | Method and Description |
---|---|
static LoggingResourceVisitor |
LoggingResourceVisitor.log(ResourceVisitor visitor) |
Constructor and Description |
---|
ResourceTreeWalker(ResourceVisitor visitor) |
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.