Introduction - If you have any usage issues, please Google them yourself
connection/object pool. A program may require a IMAP connection po ol and LDAP connection pool. One could easily im plement 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 ju st take the IMAP connection pool and convert tha t to a pool of threads (Copy, paste, find, replace). Need to make some changes to the pool i mplementation Not a very easy task, since the code has been duplicated in many place s. Re-inventing source code is not an intellige nt approach in an object oriented environment w hich encourages re-usability. It seems to make more sense to implement a pool that can contain a ny arbitrary type rather than duplicating code . How does one do that The answer is to use t