commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject RE: [configuration] DELIMITER in AbstractConfiguration
Date Wed, 22 Sep 2004 09:00:53 GMT
Henning P. Schmiedehausen wrote on Wednesday, September 22, 2004 10:50 AM:

> =?iso-8859-1?Q?J=F6rg_Schaible?=
> <> writes:
>> Emmanuel Bourg wrote on Tuesday, September 21, 2004 8:53 PM:
>>> I tried to make the delimiter non static but found a problem: you
>>> can't change the delimiter for a PropertiesConfiguration if you
>>> specify the file in the constructor, because the file is parsed
>>> before you get a chance to change the delimiter. You have to create
>>> the configuration, set the delimiter, and then load the file.
>> Why not add an additional ctor with the delimiter as param?
> For 1.1-dev please. Or do you have an urgent need that you must
> scratch? 

No, I just reacted on Emmanuel's "Cannot be done in this way".

> Personally, I stopped trying to cram everything into the
> C'tor. You might end up with a dozen c'tors permutating
> parameters all over the place. While I'm not yet convinced of
> IoC, one of their pattern (construct the element, then call
> setters on it to put all the information into the new object)
> really proved to be code reducing.

Well, I am a believer in constructor injection opposed to setter injection


- Jörg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message