public interface PluginLoader
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
fileInspect(File file)
加载的插件文件验证
|
boolean |
isApplicable(File file)
检查是否能加载
|
PluginWrapper |
load(File file)
根据File 加载插件
|
PluginWrapper load(File file) throws IOException, PluginLoadException
file - 插件的FileIOException - 文件不存在PluginLoadException - 插件加载异常boolean isApplicable(File file)
file - 插件文件boolean fileInspect(File file) throws FileNotFoundException, PluginLoadException
file - FileFileNotFoundException - 文件不存在PluginLoadException - 插件加载异常Copyright © 2020. All rights reserved.