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

Sling Models BeanPropertyViaProvider should support nesting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Models Impl 1.4.10
    • Models Impl 1.4.12
    • Extensions
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: