Interface PluginProviderContext

All Known Subinterfaces:
BootstrapContext

@NonExtendable @Experimental public interface PluginProviderContext
Represents the context provided to a PluginBootstrap during both the bootstrapping and plugin instantiation logic. A boostrap context may be used to access data or logic usually provided to Plugin instances like the plugin's configuration or logger during the plugins bootstrap.
  • Method Details

    • getConfiguration

      @NotNull @NotNull PluginMeta getConfiguration()
      Provides the plugin's configuration.
      Returns:
      the plugin's configuration
    • getDataDirectory

      @NotNull @NotNull Path getDataDirectory()
      Provides the path to the data directory of the plugin.
      Returns:
      the previously described path
    • getLogger

      Provides the logger used for this plugin.
      Returns:
      the logger instance
    • getPluginSource

      @NotNull @NotNull Path getPluginSource()
      Provides the path to the originating source of the plugin, such as the plugin's JAR file.
      Returns:
      the previously described path