Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-64

Support advanced annotated variables on methods implementing onPreCall and onPostCall

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.4.0
    • None
    • None

    Description

      When building Resources, the arguments bound on methods with RestMethod annotations is very customizable and robust. By contrast, overriding onPreCall and onPostCall on those resources you are back to interacting only with the RestRequest object.

      Would it be possible to provide implementations of onPreCall and onPostCall using annotations on methods? perhaps @RestMethodPreCall and @RestMethodPostCall... or re-use @RestMethod but use one or more fields to denote which phase of the Rest call life-cycle that method ties to.

      The main benefit to this would be ability to utilize org.apache.juneau.rest.annotation.* to decorate the parameters of these methods.

      Attachments

        Activity

          People

            jamesbognar James Bognar
            steveblackmon Steve Blackmon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified