public interface PluginManger
extends org.springframework.beans.factory.InitializingBean
| 限定符和类型 | 方法和说明 |
|---|---|
void |
autoLoadInstallPlug()
主程序 启动时是否自动加载以安装的插件
|
boolean |
containsPlugInstall(String pluginId)
插件是否安装
|
boolean |
containsPlugRun(String pluginId)
是否运行
|
List<PluginDbInfo> |
getInstallInfo()
获取插件安装信息
|
List<PluginWrapper> |
getPluginRunning()
获取正在运行中的插件
|
PluginWrapper |
getRunningPlug(String pluginId)
获取运行的插件
|
PluginWrapper |
install(byte[] bytes)
安装插件
|
void |
start(String pluginId)
启动插件
|
void |
stop(String pluginId)
停止插件
|
void |
sysStop(org.springframework.context.event.ContextClosedEvent contextClosedEvent)
系统停止
|
void |
uninstall(String pluginId)
卸载插件
|
PluginWrapper |
update(byte[] bytes,
String id)
更新插件
|
PluginWrapper install(byte[] bytes) throws IOException, PluginLoadException, PluginInstallException
bytes - 插件byteIOException - IOExceptionPluginLoadException - 插件加载异常PluginInstallException - 插件安装异常PluginWrapper update(byte[] bytes, String id) throws IOException, PluginLoadException, PluginUpdateException
bytes - 插件byteid - 插件idIOException - IOExceptionPluginLoadException - 插件加载异常PluginUpdateException - 插件更新异常List<PluginDbInfo> getInstallInfo() throws IOException
IOException - IOExceptionPluginWrapper getRunningPlug(String pluginId)
pluginId - 插件Idboolean containsPlugInstall(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionboolean containsPlugRun(String pluginId)
pluginId - 插件IdList<PluginWrapper> getPluginRunning()
void autoLoadInstallPlug()
throws IOException,
PluginLoadException
IOException - IOExceptionPluginLoadException - 插件加载异常void start(String pluginId) throws IOException, PluginLoadException
pluginId - 插件IdIOException - IOExceptionPluginLoadException - PluginLoadExceptionvoid stop(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionvoid uninstall(String pluginId) throws IOException
pluginId - 插件IdIOException - IOExceptionvoid sysStop(org.springframework.context.event.ContextClosedEvent contextClosedEvent)
contextClosedEvent - ContextClosedEventCopyright © 2020. All rights reserved.