mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
until SEZPOZ-6 is fixed, we can't mark the @Extension as Retention(RUNTIME), so the sort order won't take effect.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18074 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
ec6a98b64a
commit
68f5615cd9
4 files changed
+26
-2
No files matched your search
@@ -68,4 +68,13 @@ import java.lang.annotation.Target;
|
||||
@Target({TYPE, FIELD, METHOD})
|
||||
@Documented
|
||||
public @interface Extension {
|
||||
/**
|
||||
* Used for sorting extensions.
|
||||
*
|
||||
* Extensions will be sorted in the descending order of the ordinal.
|
||||
* This is a rather poor approach to the problem, so its use is generally discouraged.
|
||||
*
|
||||
* @since 1.306
|
||||
*/
|
||||
double ordinal() default 0;
|
||||
}
|
||||
Reference in new issue
Block a user