Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3855

"Componentize" the REST subsystem

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9 M2
    • Fix Version/s: 2.0 M1
    • Component/s: {Unused} Web Services
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Currently the REST subsystem "discovers" available resources by using parameters declared in the web.xml, i.e., the list of available resources is hard-coded in the web.xml.

      The component manager could be used for this task: JAXRS resources and providers could be declared as @Components and discovered on the fly using the component manager. In this way the REST API could be extended just by throwing a jar containing the new component-resources in WEB-INF/lib and not touching anything else.

      Moreover component-resources could benefit of automatic injection to retrieve useful XWiki components needed for their logic.

        Attachments

          Activity

            People

            Assignee:
            fmancinelli Fabio Mancinelli
            Reporter:
            fmancinelli Fabio Mancinelli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: