public class PluginDependenceManager extends java.lang.Object implements PluginEngineModule
限定符和类型 | 方法和说明 |
---|---|
void |
backupTo(java.io.File backupFolder) |
long |
calculateAllDependenceSize() |
java.util.List<PluginDependence> |
getAll() |
java.io.File |
getFile(java.lang.String key)
根据key获取文件
|
static PluginDependenceManager |
getInstance() |
void |
makeSureDependenceInstalledBy(PluginMarker marker,
PluginXml xml,
Progress progress)
安装插件时,要确保依赖已经安装成功
|
void |
makeSureDependenceRunningBy(Plugin plugin)
确保插件的依赖处于运行状态
|
void |
pluginInstallFailed(PluginMarker marker,
PluginXml xml) |
void |
pluginRunFailed(Plugin plugin)
插件运行失败
|
void |
pluginUninstalled(PluginMarker marker,
PluginXml xml) |
void |
pluginUpdated(PluginMarker lowerMarker,
PluginXml lowerXml)
插件升级完成
在这之前因为已经安装了新插件,所以各个依赖中,已经保存了新的插件marker,这里要删掉旧的,与卸载是同一个流程
|
static java.util.List<PluginMarker> |
readInterPluginDependency(PluginXml xml)
读取插件间依赖关系
|
void |
restoreFrom(java.io.File backupFolder) |
void |
start() |
void |
stop() |
public void start()
start
在接口中 PluginEngineModule
public void stop()
stop
在接口中 PluginEngineModule
public static PluginDependenceManager getInstance()
public void makeSureDependenceRunningBy(Plugin plugin) throws PluginException
PluginException
public void pluginRunFailed(Plugin plugin)
public void makeSureDependenceInstalledBy(PluginMarker marker, PluginXml xml, Progress progress) throws PluginException
PluginException
public void pluginInstallFailed(PluginMarker marker, PluginXml xml)
public void pluginUninstalled(PluginMarker marker, PluginXml xml)
public static java.util.List<PluginMarker> readInterPluginDependency(PluginXml xml)
public void pluginUpdated(PluginMarker lowerMarker, PluginXml lowerXml)
public java.util.List<PluginDependence> getAll()
public void backupTo(java.io.File backupFolder)
public void restoreFrom(java.io.File backupFolder)
public long calculateAllDependenceSize()
public java.io.File getFile(java.lang.String key)