|
From: Rod J. <ro...@in...> - 2004-09-27 17:49:40
|
I don't object.=20 -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf = Of j=FCrgen h=F6ller [werk3AT] Sent: 27 September 2004 14:28 To: spr...@li... Subject: [Springframework-developer] PoolingConfig and getXxxCount I've just deprecated PoolingConfig's "int getActive" and "int getFree" methods in favor of "getActiveCount" and "getIdleCount", to make their naming consistent with the rest of the framework. We've had various namings for such methods before, for example = "getNrOfXxx" or "getXxxCount". Since 1.1, everything should be named "getXxxCount". PoolingConfig just slipped through my review... Interestingly, most Jakarta Commons projects use "getNumXxx" naming. = Well, the most important thing is probably just consistency, whatever naming pattern chosen. In particular, I believe that such methods that return a count should explicitly express this in their name. Therefore, a name like = "getActive" is not clear enough, IMO: It could also return an active object... Thoughts? Objections? Juergen ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 = Project Admins to receive an Apple iPod Mini FREE for your judgement on who = ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |