Annotation Interface Dependency


@Retention(RUNTIME) @Target({}) public @interface Dependency
Indicates that the Plugin depends on another plugin to enable.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The plugin ID of the dependency.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the dependency is not required to enable this plugin.
  • Element Details

    • id

      @Pattern("[a-z][a-z0-9-_]{0,63}") String id
      The plugin ID of the dependency.
      Returns:
      The dependency plugin ID
      See Also:
    • optional

      boolean optional
      Whether the dependency is not required to enable this plugin. By default, this is false, meaning that the dependency is required to enable this plugin.
      Returns:
      true if the dependency is not required for the plugin to work
      Default:
      false