PluginRegistry
The PluginRegistry interface defines the base contract for classes that allow installing and managing engine plugins.
Inheritors
Functions
Link copied to clipboard
fun <C : Any, T : Any> PluginRegistry.getOrInstall(plugin: EnginePlugin<C, T>, configure: C.() -> Unit = { }): T
Returns the installed plugin instance from the registry, or throws IllegalStateException of no plugin instance is found.
Link copied to clipboard
Link copied to clipboard
Returns the plugin instance associated with the given key, or throws IllegalStateException of no plugin instance is found.
Returns the installed plugin instance from the registry, or throws IllegalStateException of no plugin instance is found.