首页> 中文期刊> 《计算机应用与软件》 >Java 类库演化过程中客户端代码适配方法

Java 类库演化过程中客户端代码适配方法

     

摘要

Class libraries technique enables the programmers may concentrate on organising the business logic of software products by directly invoking the interfaces exposed in class libraries without the need to know the implementation details.However,since the on-going version evo-lution of the class libraries,the time and the cost of adapting the client-side codes to new class libraries will increase significantly.Therefore, we propose a solution with regard to automatic generation of data adaption layer to deal with the class libraries evolution issue of Java language class libraries.The approach presented in the paper analyses the common patterns of Java class libraries evolution and gives corresponding adap-tation scheme for every evolution pattern of the class library,on this basis it develops the code generator of the adaption layer.Aiming at specific client-side code,the code generator of adaptation layer automatically generates the adaption layer code so as to accomplish the compatibility of the evolved libraries on the new class library.Finally,we demonstrate the feasibility of the proposed approach by a case study.%类库技术使得程序员无需了解实现细节,直接调用类库暴露的接口就可以组织软件产品的业务逻辑。由于类库的版本不断演化,将客户端代码适配到新类库的时间与成本将大幅增加。为此,提出一个代码适配层自动化生成的解决方案,来应对 Java语言类库的类库演化问题。分析 Java 类库演化的常见模式,针对每一种类库演化模式给出相应的适配方案,在此基础上开发适配层代码生成器。针对特定的客户端代码,适配层代码生成器为客户端代码自动产生适配层代码,以完成客户端代码对新类库的兼容。最后,通过一个案例研究,展示了该方法的可行性。

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号