Support two principles meanwhile
Bases on java classloader, load implement of plugin jar, and also uses convention over configuration conception.
Jar File name muse be full quality class name. When application starts, it will scan jar files under plugin directory,and instanced by reflection.
Host application will instance all interface implementations by ServiceLoader#load, and plugin module resources directory must hava META-INF/services/{plugin interface full quality class name} file whose content is plugin interface implementation class full quality name
Principle | Load Time | Naming |
---|---|---|
classloader | if needed | jar file strictly naming with full quality class name of impl |
spi | with host app | jar file is ok |
problem: when plugin app is a plugin, it can't access its own resource
see plugin-sample or plugin-apipost
data and headers
file upload
plugin download https://leon.lanzoub.com/b0d9w4cof 提取码:ax63
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。