---
title: "网络类加载器实现"
author: "smallbee"
date: "2014-09-01T10:13:39Z"
tags: []
categories: ["企业架构"]
slug: "untitled"
draft: false
lastmod: "2014-09-01T10:13:39Z"
id: 2111404
url: "https://smallbee.iteye.com/blog/2111404"
---

[ClassloaderTest.rar](http://dl.iteye.com/topics/download/96e6bfb8-396d-3763-bef9-615f167f36b6) 是服务器端接口实现。

[Classloader.rar](http://dl.iteye.com/topics/download/9ebc960f-15e6-34c6-beff-f8ce20c1e50b) 是客户端通过网络加载器实现从服务器端加载类。

 

[提交](/attachments/1007365)   
![](http://dl2.iteye.com/upload/attachment/0100/7366/42e50c6a-d569-3dc5-8a73-23c18395f109.jpg)  
 

第二次loadclass

![](http://dl2.iteye.com/upload/attachment/0100/7368/c561c838-c462-37f2-b1e5-819851c41183.jpg)  
 

 

作用：可将接口给客户端，实现放在服务器端，客户端发起请求时候会从网络类加载器中读取实现。