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

插件能否通过自定义ClassLoader加载? #406

Open
Lua12138 opened this issue Oct 20, 2017 · 0 comments
Open

插件能否通过自定义ClassLoader加载? #406

Lua12138 opened this issue Oct 20, 2017 · 0 comments

Comments

@Lua12138
Copy link

由于特殊需求,需要将插件中所有的Class.class.getResourceAsStream(String)方法调用进行重定向。根据API文档指示,该方法的调用最终会被委托到其类加载器中的同名方法。

因此是否有方法可以用自定义的类加载器继承原来DroidPlugin的类加载,然后使用我的类加载器来启动插件?

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

1 participant