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

Make the dependency resolution more resource-type centric

    XMLWordPrintableJSON

Details

    Description

      The current (1.2.0 and before) implementation of the org.apache.sling.scripting.sightly.js.impl.use.DependencyResolver can be simplified and reduced to two use-cases:

      1. caller is a JS script - resolve the dependency relative to the script, but taking resource type hierarchy in consideration
      2. caller is a component script - resolve the dependency relative to the resource type, but traverse the resource type hierarchy if needed

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: