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:12:00 UTC

[jira] [Closed] (JUNEAU-146) Add ranks to @Config annotations.

     [ https://issues.apache.org/jira/browse/JUNEAU-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Bognar closed JUNEAU-146.
-------------------------------
    Fix Version/s: 8.1.1
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 8.1.1
>
>
> 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)