You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2019/09/08 21:09:00 UTC
[jira] [Created] (JUNEAU-146) Add ranks to @Config annotations.
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)