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

[Sling Models] Allow for extensible @Via providers

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment