tree: 1a98177ca0c9d37f5a4e566a5fe26da530a939e1 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
jcr-wrappers/README.md

Apache Sling JCR API Wrappers (org.apache.sling.jcr.wrappers)

This module provides a set of classes that wrap the JCR API.

The wrappers just pass all calls through to the underlying implementation, they are meant to be extended to customize just the methods that need customizing.

At this point this is experimental - the JCR API as rich and sometimes complex semantics which can be tricky to wrap properly. If this module works for your purposes that‘s great, but don’t expect too much!

Use Cases

This can be used to interecept calls to the JCR API in a way that's transparent to the clients.

Use cases include, but are not limited to:

  • Pre-loading or generating JCR content on-demand when specific API calls happen
  • Inserting delays or errors for testing
  • Converting content on the fly

So far we have only used this module for a limited implementation of content pre-loading as demonstrated by this module's tests.

Other usages will probably need expanding this module's test coverage which is incomplete for now.