Java之——类热加载

上传者: a925907195 | 上传时间: 2022-05-18 20:18:38 | 文件大小: 22KB | 文件类型: RAR
java 的类动态加载实现,入口在MsgHandler 通过修改MyManager类中的输出值可用动态编译对应的class,然后替换后查看效果。

文件下载

资源详情

[{"title":"( 28 个子文件 22KB ) Java之——类热加载","children":[{"title":"com.fjsh.hot.classloader","children":[{"title":".project <span style='color:#111;'> 576B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"fjsh","children":[{"title":"hot","children":[{"title":"classloader","children":[{"title":"Logic.java <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"MyManager.java <span style='color:#111;'> 264B </span>","children":null,"spread":false},{"title":"LoadInfo.java <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"BaseManager.java <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"ManagerFactory.java <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"MyClassLoader.java <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"MsgHandler.java <span style='color:#111;'> 640B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"maven-status","children":[{"title":"maven-compiler-plugin","children":[{"title":"compile","children":[{"title":"default-compile","children":[{"title":"createdFiles.lst <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":"inputFiles.lst <span style='color:#111;'> 623B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"fjsh","children":[{"title":"hot","children":[{"title":"classloader","children":[{"title":"LoadInfo.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"MyClassLoader.class <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"BaseManager.class <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"Logic.class <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"ManagerFactory.class <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"MsgHandler.class <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.fjsh.hot.classloader","children":[{"title":"com.fjsh.hot.classloader","children":[{"title":"pom.properties <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 725B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"com.fjsh.hot.classloader-0.0.1-SNAPSHOT.jar <span style='color:#111;'> 7.70KB </span>","children":null,"spread":false},{"title":"maven-archiver","children":[{"title":"pom.properties <span style='color:#111;'> 147B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"classloader","children":[{"title":"com","children":[{"title":"fjsh","children":[{"title":"hot","children":[{"title":"classloader","children":[{"title":"MyManager - bbb12345.class <span style='color:#111;'> 583B </span>","children":null,"spread":false},{"title":"MyManager.class <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"MyManager bbb132456.class <span style='color:#111;'> 584B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 664B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 725B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"com","children":[{"title":"fjsh","children":[{"title":"hot","children":[{"title":"classloader","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明