Stephen McConnell wrote: > >>When you get a my.ComponentImpl back you have to put it in the right pool, >>but the type information is not enough. >> > > I also have reservations about the type approach because it would restrict > managers to the set of possible pools and would not enable pools that return > mixed types.
A pool should not mix types. A definition of a pool follows: 1) A Pool manages a finite group of instances of an object. 2) All instances are logically identical. 3) Each acquiring of an instance returns a unique instance. 4) Any released instances can (and should) be reused. -- "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>