Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-949

Refactor AbstractRestResponder and Responder interface interact better with CDI

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 1.0.0.CR1
    • 1.0.0.CR1
    • controller
    • None

    Description

      Currently, subclasses of AbstractRestResponder are required to call it sole constructor which takes a MediaType as a parameter. But this will cause issues with CDI if for example a user would like to use a different scope for a custom responder, as CDI requires a no-args constructor for various operations (like creating a proxy).

      This task should remove the constructor from AbstractRestResponder and let subclasses manages this them selves.

      This tasks should also add a deployment time check to verify that a Responder implementation provides a no-args constructor. If not provided the will be no way for the user to notice that their custom responder was not picked up, they would only notice that it is not working.

      Attachments

        Issue Links

          Activity

            People

              dbeveniu Daniel Bevenius (Inactive)
              dbeveniu Daniel Bevenius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: