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

Allow ValueMapInjector and ResourcePathInjector to act directly on SlingHttpServletRequest

    XMLWordPrintableJSON

Details

    Description

      Currently both injectors only work correctly on objects being adaptable to a ValueMap. For ValueMapInjector this is documented but for ResourcePathInjector it is not (http://sling.apache.org/documentation/bundles/models.html#available-injectors), although for the latter it does only matter if the path is given through a resource property and not in a static way.

      This should be relaxed that both also work with SlingHttpServletRequest as that always carries the current resource from which the ValueMap can be easily retrieved.

      Attachments

        1. SLING-5726.patch
          13 kB
          Konrad Windszus

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m