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

›› 2005, Vol. 31 ›› Issue (05): 120-.

• 论文 • 上一篇    下一篇

基于反向控制模式的通用JDBC框架

龙海,李颖   

  1. 浙江大学计算机系,浙江大学计算机系 杭州 310027,杭州 310027,讲师
  • 发布日期:2005-03-15

General JDBC Framework Based on Inverse of Control Pattern

LONG Hai, LI Ying   

  1. ( Dept. of Computer, Zhejiang University, Hangzhou 310027)
  • Published:2005-03-15

摘要: 面向对象框架技术是软件复用的一种高级机制,开发者利用框架所提供的一组集成的、针对特定领域的结构和功能,通过使用或扩展该框架,就能够快速地构建应用。一个设计良好的框架通常运用一种或多种设计模式,该文着重分析了反向控制模式在框架中的应用,同时结合以J2EE架构开发的几个项目经验,介绍了一个简单、易用的JDBC框架实现。

关键词: 设计模式, 框架, 反向控制, 策略模式, JDBC

Abstract: Object-oriented framework is an advanced mechanism of software reuse, by the use or extension of the framework and the utilization of a group of structures and functions which are provided by the framework, programmer can construct an application rapidly, and these structures and functions aiming at special domain and integrated. A well designed framework applies one or more design patterns. This article analyzes the application of inverse of control in framework. At the same time it introduces a simple and easy-to-use implementation of JDBC framework with the experience in using J2EE architecture to develop several projects.

中图分类号: