Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6064

Improve WADL Generator Extensibility for ID generation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.3, 3.1
    • JAX-RS
    • None
    • Unknown

    Description

      WADLGenerator class is not extensible and prevents extensions for simple customizations.

      Example: We would like to use custom IDs on the resource and methods. The mechanism provided in CXF requires to either use @XmlRootElement or rely on the default mechanism which will use fully qualified class name as the resource ID.

      Our beans are annotated with @WebService annotation (and other metadata) so it would only require a slight extension of the WADL generator to utilize a different strategy.

      However, this task becomes quite unattainable given the current design of the WADLGenerator. It basically requires to create (and maintain) a copy of the class that extends WADL generator.

      In general, WADL generator extensibility could be reviewed (at least private vs protected methods, allowing additional strategy injection for ID generation that defaults to some built-in strategy).

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            ms185322 Mikhail S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: