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

[Sling Models] Allow for extensible @Via providers

    XMLWordPrintableJSON

    Details

      Description

      Currently, @Via support in Sling Models is limited to JavaBean properties. It would be useful to be able to extend this and allow for downstream projects to add new @Via providers.

      Proposing to support this by extending the @Via annotation

      @Via(value = "jcr:content", type = ChildResource.class)
      

      The default type is BeanProperty (the current behavior).

      New providers can be added by implementing a ViaProvider SPI and provide a marker class for use in the annotation.

        Attachments

        1. SLING-5739.diff
          35 kB
          Justin Edelson

          Issue Links

            Activity

              People

              • Assignee:
                justinedelson Justin Edelson
                Reporter:
                justinedelson Justin Edelson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: