Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2943

Component generated by @SlingServlet does not match default settings of @Component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • scr annotations 1.5.0
    • scr annotations 1.6.0
    • SCR Tooling
    • None
    • Maven 3.0.2 / Felix Framework Bundle 3.0.2 / CQ 5.3 (No HF, no FP)

    Description

      Using this annotation

      @SlingServlet(
              paths = "/my/cool/path"
      )
      

      the auto-generated component shows up unexpectedly in the configMgr dropdown. Looking at the generated metatype.xml one can also see that the servlet is listed there as configurable.

      Looking at the JavaDoc comment of @SlingServlets generateComponent() i had expected that a default (= empty) @Component annotation would be created, which of course has metatype = false as a default. This unfortunately does not seem to be the case, causing our configMgr dropdown to be flooded with config entries for all our (non-configurable) servlets.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            mikep Mike Pfaff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: