使用反射通过网络加载类文件 [英] Load Class files over the network with Reflections

查看:64
本文介绍了使用反射通过网络加载类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在网络上使用反射,例如 wwww.domain.com/codes/MyClass.Class

Is there a way to use a reflection over the network like "wwww.domain.com/codes/MyClass.Class"

我们有一台服务器,用于保存代码,在另一台服务器上,我们运行该程序并从第一台服务器加载不同的代码。

We have got a server, where we save the code, and on the other server we run the program and load different code from the first server.

谢谢

推荐答案

听起来您正在寻找 URLClassLoader

It sounds like you're looking for URLClassLoader.

这篇关于使用反射通过网络加载类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆