Annotation Interface Plugin


@Target(TYPE) @Retention(RUNTIME) public @interface Plugin
Represents plugin metadata, should be used to annotate ReposilitePlugin
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    Class<? extends com.reposilite.configuration.shared.api.SharedSettings>
     
     
  • Element Details

    • name

      String name
      Returns:
      the name of this plugin
    • version

      String version
      Returns:
      version of plugin, by default it is same as the current Reposilite version
      See Also:
      • ReposilitePropertiesKt.VERSION
      Default:
      "3.5.2"
    • dependencies

      String[] dependencies
      Returns:
      array of plugins required to launch before this one
      Default:
      {}
    • settings

      Class<? extends com.reposilite.configuration.shared.api.SharedSettings> settings
      Returns:
      custom configuration class used by plugin
      Default:
      com.reposilite.configuration.shared.api.SharedSettings.class