Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.
标签: connection pool applications program
上传时间: 2013-12-25
上传用户:playboys0
Linux 虚拟网络接口 实例 In the Linux (or Unix) world, most network interfaces, such as eth0 and ppp0, are associated with a physical device that is in charge of transmitting and receiving data packets. However, some logical network interfaces don t feature any physical packet transmission. The most well-known examples of these "virtual" interfaces are the shaper and eql interfaces.
标签: Linux interfaces network world
上传时间: 2014-01-11
上传用户:zhangzhenyu
光通讯 -DWDM Transmission Technology and Photonic Layer Network
标签: Transmission Technology Photonic Network
上传时间: 2014-02-27
上传用户:685
BLT is a library of extensions to the Tk library. It adds new commands and variables to the application s interpreter.
标签: library extensions the variables
上传时间: 2014-01-06
上传用户:维子哥哥
D:\Documents and Settings\yu\My Documents\数控技术\斐克破解\crackD:\Documents and Settings\yu\My Documents\数控技术\斐克破解\crack
标签: Documents SettingsyuMy and crackD
上传时间: 2014-12-01
上传用户:chongcongying
usb and mp3 drivers 都是些公开源码,
上传时间: 2013-12-16
上传用户:firstbyte
is about the 51 and the LCD
上传时间: 2013-12-22
上传用户:sunjet
SoundMixer example application is compatible with Series 60 Developer Platform v1.0 and v2.0. It has been tested to work with the Nokia N-Gage and Nokia 6600 phone model.
标签: application SoundMixer compatible Developer
上传时间: 2015-06-27
上传用户:lijinchuan
Edge Detection Basis of Theory and Practice by CAS –Computer Vision Course 2ndlesson Veronique PRINET
标签: Detection 2ndlesson Veronique Computer
上传时间: 2015-06-27
上传用户:ardager
Edge Detection Basis of Theory and Practice CAS –Computer Vision Course 3rdlesson Veronique PRINET
标签: Detection 3rdlesson Veronique Computer
上传时间: 2013-12-12
上传用户:ccclll