Annotation Interface OptionalExtension


@Retention(RUNTIME) @Target({TYPE,METHOD,FIELD}) @Documented public @interface OptionalExtension
Works like Extension except the activation of the extension is contingent on the presence of specific requirePlugins and/or classes.
Author:
Kohsuke Kawaguchi
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    double
    Used for sorting extensions.
    Classes that are required to activate this extension.
    Short names of the plugins that are required to trigger this extension.
    Variants that are required to activate this extension.
  • Element Details

    • ordinal

      double ordinal
      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.
      Default:
      0.0
    • requirePlugins

      String[] requirePlugins
      Short names of the plugins that are required to trigger this extension.
      Default:
      {}
    • requireClasses

      Class[] requireClasses
      Classes that are required to activate this extension.
      Default:
      {}
    • requireVariants

      String[] requireVariants
      Variants that are required to activate this extension.
      Default:
      {}