public interface PluginDb
| 限定符和类型 | 方法和说明 |
|---|---|
void |
install(Plugin plugin,
File file)
安装插件
|
boolean |
isInstall(String pluginId)
插件是否已安装
|
Map<String,PluginDbInfo> |
read()
获取所有安装的插件信息
|
String |
start(String pluginId)
启动插件
|
void |
stop(String pluginId)
停止插件
|
PluginDbInfo |
uninstall(String pluginId)
卸载插件
|
void |
update(Plugin plugin,
File file)
更新插件
|
Map<String,PluginDbInfo> read() throws IOException
IOException - IOExceptionPluginDbInfo uninstall(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionvoid stop(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionvoid install(Plugin plugin, File file) throws IOException
plugin - Pluginfile - 安装的文件IOException - IOExceptionString start(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionvoid update(Plugin plugin, File file) throws IOException
plugin - Pluginfile - 更新后的文件IOException - IOExceptionboolean isInstall(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionCopyright © 2020. All rights reserved.