commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <martin.coo...@tumbleweed.com>
Subject RE: [discovery] code/design review [was Re: The exegesis]
Date Wed, 14 Aug 2002 18:22:53 GMT


> -----Original Message-----
> From: Joe Germuska [mailto:Joe@Germuska.com]
> Sent: Wednesday, August 14, 2002 11:11 AM
> To: Jakarta Commons Developers List
> Subject: Re: [discovery] code/design review [was Re: The exegesis]
> 
> 
> At 7:44 PM +0200 2002/08/14, Nicola Ken Barozzi wrote:
> >>My suggested "Object newInstance(...)" is kind of like what you 
> >>mentioned in 2a, but it seems like such a common case and 
> >>relatively inoffensive, so it seems like it should go in the core.
> >
> >If a method is "inoffensive", usually it means that it's useless.
> >I always try not to put "utility" methods in classes, because they 
> >make the code much harder to maintain.
> 
> Well, I think we're using inoffensive differently.  You can't tell me 
> that every useful method in every java class offends someone's design 
> sensibilities!
> 
> It strikes me that if the majority of expected users are going to be 
> calling class.newInstance, then factoring that out into discovery is 
> reasonable design, rather than having that code duplicated again and 
> again.
> 
> Do I take it that you consider even the instantiation part of life 
> cycle management best left to another package with a more complete 
> process?

I think you're supposed to use Avalon if you want to create new instances of
a class. That would be lifecycle related, so should be part of a framework.

;-b ;-p ;-b

--
Martin Cooper


> 
> It's certainly not something I would make a big fuss about if 
> it gets left out.
> 
> Joe
> 
> -- 
> --
> * Joe Germuska    { joe@germuska.com }
> "It's pitiful, sometimes, if they've got it bad. Their eyes get 
> glazed, they go white, their hands tremble.... As I watch them I 
> often feel that a dope peddler is a gentleman compared with the man 
> who sells records."
> 	--Sam Goody, 1956
> 
> --
> To unsubscribe, e-mail:   
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message