JvmPluginLoader

interface JvmPluginLoader : CoroutineScope, FilePluginLoader<JvmPlugin, JvmPluginDescription>

JVM 插件加载器

Types

BuiltIn
Link copied to clipboard
object BuiltIn : JvmPluginLoader

Functions

disable
Link copied to clipboard
abstract fun disable(plugin: JvmPlugin)

主动禁用这个插件.

enable
Link copied to clipboard
abstract fun enable(plugin: JvmPlugin)

主动启用这个插件.

getPluginDescription
Link copied to clipboard
abstract fun getPluginDescription(plugin: JvmPlugin): JvmPluginDescription

获取此插件的描述.

listPlugins
Link copied to clipboard
abstract fun listPlugins(): List<JvmPlugin>

扫描并返回可以被加载的插件的列表.

load
Link copied to clipboard
abstract fun load(plugin: JvmPlugin)

主动加载一个插件 (实例), 但不 启用 它. 返回加载成功的主类实例

Properties

classLoaders
Link copied to clipboard
abstract val classLoaders: List<ClassLoader>
configStorage
Link copied to clipboard
abstract val configStorage: PluginDataStorage
coroutineContext
Link copied to clipboard
abstract val coroutineContext: CoroutineContext
dataStorage
Link copied to clipboard
abstract val dataStorage: PluginDataStorage
fileSuffix
Link copied to clipboard
abstract override val fileSuffix: String

".jar"

Inheritors

BuiltIn
Link copied to clipboard