Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6298

Resource Type-Based Registration of Sling Models doesn't work with alternate adapter type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Sling Models Impl 1.3.0
    • Sling Models Impl 1.3.2
    • Extensions
    • None

    Description

      If a model class has an annotation like

      @Model(adaptables = { Resource.class }, adapters = Component.class, resourceType = "sling/exp/interface")
      public class ComponentImpl {
      ...
      }
      

      then calling exportModelForResource() does not work because the resource type is associated with the adapter type ComponentImpl rather than the type Component.

      Attachments

        Activity

          People

            justinedelson Justin Edelson
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: