JvmPluginClasspath

interface JvmPluginClasspath

JvmPlugin 的类路径

Since

2.12

See also

Functions

Link copied to clipboard
abstract fun addToPath(classLoader: ClassLoader, file: File)

file 加入 classLoader 的搜索路径内

Link copied to clipboard
abstract fun downloadAndAddToPath(classLoader: ClassLoader, dependencies: Collection<String>)

下载依赖, 并注册进 classLoader

Properties

Link copied to clipboard
abstract val pluginClassLoader: ClassLoader

插件本体的 ClassLoader, 负责加载插件本身的类数据

Link copied to clipboard
abstract val pluginFile: File
Link copied to clipboard
abstract val pluginIndependentLibrariesClassLoader: ClassLoader

插件内部使用的依赖, 不公开给其他插件, 其他插件搜索时不会搜索到此插件的依赖

Link copied to clipboard
abstract val pluginSharedLibrariesClassLoader: ClassLoader

插件所使用的依赖, 可共享, 当其他插件依赖于当前插件时, 其他插件可以从此 ClassLoader 搜索类引用