sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <>
Subject [jira] [Commented] (SLING-6652) Allow multiple adapters for Models with resourceType binding
Date Thu, 16 Mar 2017 10:20:42 GMT


Konrad Windszus commented on SLING-6652:

Registering multiple models on the same adapter is already supported via
Maybe the same implementation picker can be used if multiple resource-type-based model registrations
exist. The default implementation picker will always pick the implementation with the class
name which comes first in an alphabetical order (

> Allow multiple adapters for Models with resourceType binding
> ------------------------------------------------------------
>                 Key: SLING-6652
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Dirk Rudolph
> According to
the AdapterImplementations support only mapping resourceType to Adapter 1:1. I would like
to propose extending that to support 1:n binding between resourceType and adapter classes.
> My use case: 
> Lets assume I want to combine my models with the exporter framework to export 2 representations
of a single resource:
> * metadata
> * data
> To do so I would create 2 models, each bound to the same resourceType but annotated to
be exported for different selectors. 

This message was sent by Atlassian JIRA

View raw message