Delegating Servlet
Available since version 1.0.0
Purpose
Avoid polluting the /apps
namespace for one-off overlays, and to enable deployment of multiple overlay options while enabling the system to select the implementation to use.
Use Cases
- Moving resource type implementations without modifying all content
sling:resourceType
properties - Overlaying OOTB
/libs
behavior without creating overlay content trees under/apps
not specific to your organization/project (ex./apps/foundation
or/apps/cq
)
This Servlet Factory allows “Source resource types” to be mapped to a “Target resource type”, effectively providing an “in code” overlay of the “Source resource type”.
How to Use
To create a delegation mapping, create a new sling:OsgiConfig
node for a factory configuration:
/apps/myapp/config.author/com.adobe.acs.commons.util.impl.DelegatingServletFactoryImpl-SomeFriendlyName
Example
The ACS AEM Commons Designer - ClientLibs implementation uses the Delegating Servlet to delegate requests from resource type wcm/core/components/designer
to acs-commons/components/utilities/designer