We often come across features that require traversal of a resource tree (e.g. processing assets in a folder). In such scenarios, recommendation is to use tree traversal than queries. More details of similar scenarios can found on link Sling provides AbstractResourceVisitor API, which performs traversal through a resource tree, allowing a developer to focus on processing child resources. How to … Continue reading AbstractResourceVisitor for traversing resource trees
Author: Aanchal Sikka
Certified AEM Architect and Developer
Sling model: Basics
The post focuses on discussing annotations used for Sling Models with examples
Sling-based ResourceChangeListener
Sling-based listener (ResourceChangeListener) for handling resource change events
Dynamic Path for ResourceChangeListener
As a authoring environment grows, the paths that a ResourceChangeListener should listen to, might become granular/generic. The post shares the steps to make watch paths configurable.