Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

宿主和插件之间通讯 #43

Closed
barryly opened this issue Jul 12, 2019 · 2 comments
Closed

宿主和插件之间通讯 #43

barryly opened this issue Jul 12, 2019 · 2 comments

Comments

@barryly
Copy link

barryly commented Jul 12, 2019

刚刚提交了一个例子
d25da55

后面再补充其他场景。

Originally posted by @shifujun in #31 (comment)

按照您的方式,我试着增加一个module,然后有个host宿主implementation这个module,插件plugin ComplieOnly这个module,然后插件使用这个module里面的某个类,而且我已经加了whitelist,但是为啥现在还是会报错插件找不到这个宿主的module呢?

@shifujun
Copy link
Collaborator

你把出错的代码push上来,我就可以直接调试看出问题了。

fork Shadow到自己名下。然后把改动提交,push上来。不用提MR,我直接去你的版本库里看就行了。

@barryly
Copy link
Author

barryly commented Jul 12, 2019

问题找到了,是由于我当前插件依赖了dependOn别的插件,然后当前的父classloader应该是被依赖的插件。而不是宿主,解决办法是在被依赖的插件上面加个宿主的白名单才对。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants