You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Steve Blackmon (JIRA)" <ji...@apache.org> on 2017/08/02 23:04:00 UTC
[jira] [Created] (JUNEAU-64) Support advanced annotated variables
on methods implementing onPreCall and onPostCall
Steve Blackmon created JUNEAU-64:
------------------------------------
Summary: Support advanced annotated variables on methods implementing onPreCall and onPostCall
Key: JUNEAU-64
URL: https://issues.apache.org/jira/browse/JUNEAU-64
Project: Juneau
Issue Type: Improvement
Reporter: Steve Blackmon
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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)