AW: commons-configuration reload() how to do it?

2008-01-27 Thread christian.migowski
Hi Oliver,

thanks for your advice! 

 Your observation that reload() only performs a reload if the 
 reloading 
 strategy considers this necessary (which is never for the default 
 reloading strategy) is correct.
...
 Maybe an overloaded reload() method with a boolean force flag 
 would make 
 sense to make this more convenient?

Yes. For me it seems most logical to hide the current reload method
(rename it to something like reload_internal() and make it private) and
create a reload method which actually reloads.
In the current implementation, the reload() method is useless (from a
users point of view): either it does not reload or the config will be
automatically reloaded when a property is accessed - no need to call
reload().

I understand the rationale behind the reload approach in
commons-configuration, but i think it is a common use case to load
config, work with it and at some point of time explicitly reload it. If
you don't agree, a hint in the documentation (explicitly calling reload
does nothing for you) would help other users for sure.

thanks again,
best regards,

christian!



 


Sitz der Gesellschaft / Corporate Headquarters:
Lufthansa Systems Infratec GmbH, Kelsterbach
Registereintragung / Registration:
Amtsgericht Darmstadt 83851


Vorsitzender des Aufsichtsrats /
Chairman of the Supervisory Board:
Dr. Gunter Kuechler


Geschaeftsfuehrung / Management:
Dr. Hannes Pfister

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Whitespace in XML configuration file

2008-01-27 Thread Jörg Schaible
Hi Oliver,

Oliver Heger wrote:
 Ricardo Espírito Santo schrieb:
 I've tried xml:space=preserve and still no luck.
 
 
 Yes, this special attribute is not yet supported. If you
 like, you can
 open a new ticket in our bug tracking system [1] and enter an
 enhancement request. 
 
 @Jörg: Would you be interested in providing a patch?

intestested, yes. Realistically currently no. Within the next two months I will 
have to refurbish our new home and move over. Real world beats virtual ;-)

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]