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

Use-API to support more flexible way to adapt from different objects

    XMLWordPrintableJSON

    Details

      Description

      The current implementation of the Use-api accept classes that are adaptable from Request or Resource.
      This issue is to make this mechanism more flexible, to be able to adapt from different objects.

      Proposal:

      <sly data-sly-use.session="${'javax.jcr.Session' @ adaptable = resource.resourceResolver}" />
      
      ${session.userID}
      

      This avoids the implementations of wrapper classes that only do the adaptation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                radu Radu Cotescu
                Reporter:
                fvisser Feike Visser
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: