[
https://issues.apache.org/jira/browse/SLING-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929890#comment-15929890
]
Dirk Rudolph edited comment on SLING-6652 at 3/17/17 12:32 PM:
---------------------------------------------------------------
Its indeed explained in
https://issues.apache.org/jira/browse/SLING-3886?focusedCommentId=14112711&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14112711.
The only concern I have is that we implicitly expect the {{adapterType}} s
being sorted in a certain way, which - I'm not sure - might not be clear to
those developers using it.
Having said that, [[email protected]] didn't had a problem making
{{implType}} always part of the {{adapterType}}s. So +1 for that, wdyt?
was (Author: diru):
Its indeed explained in
https://issues.apache.org/jira/browse/SLING-3886?focusedCommentId=14112711&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14112711.
The only concern I have is that we implicitly expect the {{adapterType}}s
being sorted in a certain way, which - I'm not sure - might not be clear to
those developers using it.
Having said that, [[email protected]] didn't had a problem making
{{implType}} always part of the {{adapterType}}s. So +1 for that, wdyt?
> Allow multiple adapters for Models with resourceType binding
> ------------------------------------------------------------
>
> Key: SLING-6652
> URL: https://issues.apache.org/jira/browse/SLING-6652
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: Sling Models Impl 1.3.0
> Reporter: Dirk Rudolph
> Attachments: SLING-6652.diff
>
>
> According to
> http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/AdapterImplementations.java?view=markup#l59
> 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
(v6.3.15#6346)