PluginLoader

interface PluginLoader(source)

Discovers and loads plugins dynamically at runtime. Supports directory-based discovery and SPI-based loading.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun discoverPlugins(pluginDir: String): List<DiscoveredPlugin>

Discover plugins in the specified directory.

Link copied to clipboard
abstract suspend fun loadPlugin(discovered: DiscoveredPlugin): KeelPlugin

Load a discovered plugin into the runtime.

Link copied to clipboard
abstract suspend fun reloadPlugin(pluginId: String): KeelPlugin?

Reload a plugin (unload and load again).

Link copied to clipboard
abstract suspend fun unloadPlugin(pluginId: String)

Unload a plugin from the runtime.