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-146) Add ranks to @Config annotations.
Date Sun, 08 Sep 2019 21:09:00 GMT
James Bognar created JUNEAU-146:
-----------------------------------

             Summary: Add ranks to @Config annotations.
                 Key: JUNEAU-146
                 URL: https://issues.apache.org/jira/browse/JUNEAU-146
             Project: Juneau
          Issue Type: Improvement
          Components: Code
    Affects Versions: 8.1.0
            Reporter: James Bognar
            Assignee: James Bognar


The @HtmlDocConfig(navlinks) annotation is used on both the class and method levels on @RestResource-annotated
classes.  The BasicRestConfig uses this on the getOptions() method to override the list of
navlinks when OPTIONS is requested.  However, this gets overridden if @HtmlDocConfig(navlinks)
is defined on a subclass.  

To alleviate this, add a @HtmlDocConfig(rank) annotation that allows you to add ranking on
configs.  The default is 0.  Higher ranks means higher precedence.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message