juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-240) RestContext should be subclassible.
Date Sun, 07 Jun 2020 16:46:00 GMT
James Bognar created JUNEAU-240:
-----------------------------------

             Summary: RestContext should be subclassible.
                 Key: JUNEAU-240
                 URL: https://issues.apache.org/jira/browse/JUNEAU-240
             Project: Juneau
          Issue Type: Improvement
          Components: Code
    Affects Versions: 8.1.3
            Reporter: James Bognar


The RestContext class should be subclassible so that behavior can be modified at runtime.  

It could be selected on the builder class like so:
{code:java}
restContextBuilder.contextClass(MyRestContext.class){code}
The context class could also be defined via an annotation:
{code:java}
@Rest(context=MyRestContext.class){code}
This could also make classes like the RestCallHandler interface obsolete since these could
all be defined as methods on the RestContext class and overridable there.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message