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

Sling Models BeanPropertyViaProvider should support nesting

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Sling Models Impl 1.4.10
    • Fix Version/s: Sling Models Impl 1.4.12
    • Component/s: Extensions
    • Labels:
      None

      Description

      The BeanPropertyViaProvider currently does not provide access to "nested" methods. E.g. the following does not work:

      @Model(adaptables = SlingHttpServletRequest.class)
      public class SuffixBasedModel {
          public SuffixBasedModel(@Via("requestPathInfo.suffixResource") Resource suffixResource) {
              // do something with suffixResource
          }
      }
      

      With this ticket, support for nested access should be provided.

        Attachments

          Activity

            People

            • Assignee:
              jsedding Julian Sedding
              Reporter:
              jsedding Julian Sedding
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: