Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4750 New Resource Provider API
  3. SLING-5157

Improvements in the new ResourceProvider API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • API 2.11.0
    • API
    • None
    • Patch

    Description

      There are two small improvements which can be made in the new ResourceProvider API:

      1. Add properties for marking a ResourceProvider as adaptable, refreshable and attributable.
      It'll help to avoid the resource providers full-scan when invoking methods not related to a specific paths. Each registered servlet creates its own ResourceProvider and scanning them all every time someone calls ResourceResolver#adaptTo() might be slow.

      2. Mark old ResourceProvider and ResourceProviderFactory as deprecated

      Attachments

        1. SLING-5157.patch
          5 kB
          Tomek Rękawek

        Activity

          People

            Unassigned Unassigned
            tomek.rekawek Tomek Rękawek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: