juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Blackmon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-64) Support advanced annotated variables on methods implementing onPreCall and onPostCall
Date Wed, 02 Aug 2017 23:04:00 GMT
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)

Mime
View raw message