GitHub - apache/sling-org-apache-sling-superimposing: Apache Sling Superimposing Resource Provider (original) (raw)

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central Contrib License

Apache Sling Superimposing Resource Provider

This module is part of the Apache Sling project.

About

The Superimposing Resource Provider is an extension for the Apache Sling framework. It implements the ResourceProvider interface.

Goals of the solution:

There is a presentation from adaptTo() 2013 with more background information:
Superimposing Content Presentation adaptTo() 2013

The implementation of this provider is based on the great work of Julian Sedding from SLING-1778.

How to use

Preparations:

To create a superimposed resource create a node in JCR with:

Configuration

In the Felix console you can configure the creation of Superimposing Resource Providers via the service "Apache Sling Superimposing Resource Manager":

Remarks

Comparison with Sling Resource Merger

In Sling Contrib a Apache Sling Resource Merger bundle is provided. Although both Sling Resource Merger and the Superimposing Resource Provider take care of mirroring and merging resources they solve quite different problems and have different usecases: