作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (13): 60-.

• 论文 • 上一篇    下一篇

Proxy思想在代码集成中的应用

周营烽,魏宝刚,范战新   

  1. 浙江大学计算机学院,浙江大学计算机学院,浙江大学计算机学院 杭州 310027
  • 发布日期:2004-07-15

Application of Proxy Pattern in the Integration of Code

ZHOU Yingfeng,FAN Zhanxin,WEI Baogang   

  1. (Department of Computer Science And Technology, Zhejiang University, Hangzhou 310027)
  • Published:2004-07-15

摘要: 在介绍Proxy设计模式和JNI编程规范的基础上,着重探讨了在重用原有代码中将Proxy模式结合到JNI中,从而解决了在Java代码中连接native函数时由于函数型构不一致而引起的必须修改原有代码的问题,具有较普遍的意义。

关键词: 设计模式, Proxy模式, JNI, Native

Abstract: This paper discusses the Proxy design pattern and the JNI (Java Native Interface) programming technology in summary. It can overcome these difficulties by implementing Proxy pattern in JIN programming. At the end of the paper, It compares two ways of binding Proxy and JNI.

中图分类号: