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

Decrease service.ranking of ResourceTypeBasedResourcePicker

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Sling Models Impl 1.4.10
    • Fix Version/s: Sling Models Impl 1.4.12
    • Component/s: Extensions
    • Labels:
      None

      Description

      Currently the ResourceTypeBasedResourcePicker (https://github.com/apache/sling-org-apache-sling-models-impl/blob/master/src/main/java/org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java#L34) is always the 2nd last picker and the FirstImplementationPicker (https://github.com/apache/sling-org-apache-sling-models-impl/blob/master/src/main/java/org/apache/sling/models/impl/FirstImplementationPicker.java#L36) is the last picker.

      In some cases you are interested to place pickers in between (compare with https://github.com/adobe/aem-core-wcm-components/issues/546), therefore I would propose to set the service.ranking of ResourceTypeBasedResourcePicker to (Integer.MAX_VALUE - 1000).

        Attachments

          Activity

            People

            • Assignee:
              kwin Konrad Windszus
              Reporter:
              kwin Konrad Windszus
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: