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

Expose a service for Sling Scripting that provides request-scoped Resource Resolvers for scripting dependencies

    XMLWordPrintableJSON

Details

    Description

      A new Sling Scripting service (ScriptingResourceResolverProvider) should be implemented in order to provide access to request-based ResourceResolvers for solving script dependencies.

      The following method should be available:

      /**
       * Provides a request-scoped {@link ResourceResolver} with only read access to the search paths. This resolver should be used for script 
       * resolution in the context of the same request rendering process. The {@code ResourceResolver} should not be closed by consumers (calling
       * {@link ResourceResolver#close} doesn't do anything), since this service will handle the closing operation automatically. The 
       * {@code ResourceResolver} will be shared between scripting dependencies that render parts of the response for the same request.
       */
      ResourceResolver getRequestScopedResourceResolver()
      

      sling-dev email thread

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: