Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.