| 限定符和类型 | 类和说明 |
|---|---|
static class |
FileJsonPluginDb.DbInfo |
| 构造器和说明 |
|---|
FileJsonPluginDb(PluginProperties plugProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
install(Plugin plugin,
File file)
安装插件
|
boolean |
isInstall(String pluginId)
插件是否已安装
|
Map<String,PluginDbInfo> |
read()
获取所有安装的插件信息
|
String |
start(String id)
启动插件
|
void |
stop(String id)
停止插件
|
PluginDbInfo |
uninstall(String id)
卸载插件
|
void |
update(Plugin plugin,
File file)
更新插件
|
public FileJsonPluginDb(PluginProperties plugProperties) throws IOException
IOExceptionpublic Map<String,PluginDbInfo> read() throws IOException
PluginDbread 在接口中 PluginDbIOException - IOExceptionpublic void install(Plugin plugin, File file) throws IOException
PluginDbinstall 在接口中 PluginDbplugin - Pluginfile - 安装的文件IOException - IOExceptionpublic PluginDbInfo uninstall(String id) throws IOException
PluginDbuninstall 在接口中 PluginDbid - 插件IdIOException - IOExceptionpublic void stop(String id) throws IOException
PluginDbstop 在接口中 PluginDbid - 插件IdIOException - IOExceptionpublic String start(String id) throws IOException
PluginDbstart 在接口中 PluginDbid - 插件IdIOException - IOExceptionpublic void update(Plugin plugin, File file) throws IOException
PluginDbupdate 在接口中 PluginDbplugin - Pluginfile - 更新后的文件IOException - IOExceptionpublic boolean isInstall(String pluginId) throws IOException
PluginDbisInstall 在接口中 PluginDbpluginId - 插件IdIOException - IOExceptionCopyright © 2020. All rights reserved.