Class DeepReadValueMapDecorator

java.lang.Object
org.apache.sling.api.wrappers.ValueMapDecorator
org.apache.sling.api.wrappers.DeepReadValueMapDecorator
All Implemented Interfaces:
Map<String,Object>, ValueMap
Direct Known Subclasses:
DeepReadModifiableValueMapDecorator

public class DeepReadValueMapDecorator extends ValueMapDecorator
A value map wrapper which implements deep reading of properties based on the resource tree.

Deep reads outside the starting resource's subtree, or with paths that cannot be normalized, log a WARN and continue the original lookup. This decorator does not provide subtree confinement; access is governed by the starting resource's resolver permissions.

Since:
2.5 (Sling API Bundle 2.7.0)
  • Constructor Details

    • DeepReadValueMapDecorator

      public DeepReadValueMapDecorator(Resource resource, ValueMap base)
      Creates a decorator supporting deep reads relative to the given resource.
      Parameters:
      resource - The resource used as the starting point for deep reads
      base - The value map used for properties without a path
  • Method Details