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

Move ServletResolverConstants to an exported package

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Servlets Resolver 2.4.6
    • Component/s: None
    • Labels:
      None

      Description

      The constants being defined in o.a.s.servlets.resolver.internal.ServletResolverConstants are not only useful for the servlet resolver bundle itself but basically for every Sling Servlet being defined without the custom Felix SCR annotations. Therefore it would be good to move that to a package which is exported (and therefore part of the public API). Although in reality all constant Strings are inline in Java (which means that there should never be a runtime dependency towards that class) it does not even appear in http://sling.apache.org/apidocs/sling7/ nor in https://sling.apache.org/apidocs/sling7/constant-values.html. Also the constants are not part of the uber-jar being generated for the Sling API as well for AEM (https://docs.adobe.com/docs/en/aem/6-1/develop/dev-tools/ht-projects-maven.html#What%20is%20the%20UberJar?).
      This was first requested in http://www.mail-archive.com/dev@sling.apache.org/msg45467.html and became more important with the advent of OSGi 6 component annotations (see also FELIX-5396).

        Attachments

        1. SLING-6249-API-v01.patch
          9 kB
          Konrad Windszus

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: