[ 
https://issues.apache.org/jira/browse/SLING-6298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson resolved SLING-6298.
-----------------------------------
    Resolution: Fixed

fixed in r1770147

> Resource Type-Based Registration of Sling Models doesn't work with alternate 
> adapter type
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-6298
>                 URL: https://issues.apache.org/jira/browse/SLING-6298
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.3.0
>            Reporter: Justin Edelson
>            Assignee: Justin Edelson
>             Fix For: Sling Models Implementation 1.3.2
>
>
> If a model class has an annotation like
> {code}
> @Model(adaptables = { Resource.class }, adapters = Component.class, 
> resourceType = "sling/exp/interface")
> public class ComponentImpl {
> ...
> }
> {code}
> then calling exportModelForResource() does not work because the resource type 
> is associated with the adapter type ComponentImpl rather than the type 
> Component.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to