File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
open-exp-classloader-container-impl/src/main/java/cn/think/in/java/open/exp/classloader/impl
open-exp-classloader-container/src/main/java/cn/think/in/java/open/exp/classloader
open-exp-core-impl/src/main/java/cn/think/in/java/open/exp/core/impl Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1313import lombok .extern .slf4j .Slf4j ;
1414
1515import java .io .File ;
16- import java .io .IOException ;
1716import java .util .*;
1817
1918/**
@@ -53,7 +52,7 @@ public PluginMetaFat install(File file) throws Throwable {
5352 Class <ExpBoot > aClass = (Class <ExpBoot >) classLoader .loadClass (meta .getPluginBootClass ());
5453 PluginObjectRegister register = aClass .newInstance ().boot ();
5554
56- pluginMetaFat .setPluginBeanRegister (register );
55+ pluginMetaFat .setRegister (register );
5756 pluginMetaFat .setExtensionMappings (mapping );
5857 pluginMetaFat .setPluginId (meta .getPluginId ());
5958 pluginMetaFat .setPluginCode (meta .getPluginCode ());
Original file line number Diff line number Diff line change 1616@ Data
1717public class PluginMetaFat {
1818
19- String pluginId ;
19+ private String pluginId ;
2020
21- String pluginCode ;
21+ private String pluginCode ;
2222
23- String pluginDesc ;
23+ private String pluginDesc ;
2424
25- String pluginVersion ;
25+ private String pluginVersion ;
2626
27- String pluginExt ;
27+ private String pluginExt ;
2828
29- String pluginConfig ;
29+ private String pluginConfig ;
3030
31- String pluginBootClass ;
31+ private String pluginBootClass ;
3232
33- PluginObjectRegister pluginBeanRegister ;
33+ private PluginObjectRegister register ;
3434
3535 /**
3636 * 扩展点映射关系
3737 */
38- Map <String , String > extensionMappings ;
38+ private Map <String , String > extensionMappings ;
3939
40- File location ;
40+ private File location ;
4141
42- ClassLoader classLoader ;
42+ private ClassLoader classLoader ;
4343
4444 public Plugin conv () {
4545 Plugin plugin = new Plugin ();
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void setObjectStore(ObjectStore objectStore) {
3636 @ Override
3737 public Plugin load (File file ) throws Throwable {
3838 PluginMetaFat install = metaService .install (file );
39- objectStore .startRegister (install .getPluginBeanRegister (), install .getPluginId ());
39+ objectStore .startRegister (install .getRegister (), install .getPluginId ());
4040 log .info ("安装加载插件 {}" , install .getPluginId ());
4141 return install .conv ();
4242 }
You can’t perform that action at this time.
0 commit comments