Interface PluginProviderContext
- All Known Subinterfaces:
BootstrapContext
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 Summary
Modifier and TypeMethodDescriptionProvides the plugin's configuration.Provides the path to the data directory of the plugin.Provides the logger used for this plugin.Provides the path to the originating source of the plugin, such as the plugin's JAR file.
-
Method Details
-
getConfiguration
Provides the plugin's configuration.- Returns:
- the plugin's configuration
-
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
Provides the path to the originating source of the plugin, such as the plugin's JAR file.- Returns:
- the previously described path
-