[Arp] Application configuration

Nils Millahn nils.millahn at deltabravo.com
Wed May 4 03:49:00 PDT 2005


Hi,

I've also used config files extensively and think they are extremely 
useful. Even if it's not included in ARP itself, we could figure out a 
best-practice implementation while we're at it :)

As far as I can see the AppSettings class just needs to load an XML file 
and then make the properties in that file easily available to whoever 
wants them. The fact that the XML file needs to be loaded makes life a 
bit more difficult because you can't guarantee that properties are 
available when you need them. It might therefore make sense to use 
callback functions, very similarly to how the Command stuff works at the 
moment. In my mind, if we get that part right, the rest will be very easy.

What about using a singleton AppSettings class that can be imported and 
used wherever access to the config file is needed?

Just thinking aloud to get the ball rolling but I think it's worth 
creating a specific implementation that we can share...

- Nils.




Christophe Herreman wrote:

> Hi guys,
>
> has anyone thought of or come up with a uniform way to do 
> configuration settings for an ARP application? I was thinking to 
> implement some of .NET's behavior with the app.config and the 
> AppSettingsReader class.
>
> Any ideas?
>
> regards,
> Christophe
>
> _______________________________________________
> Arp mailing list
> Arp at ariaware.com
> http://ariaware.com/mailman/listinfo/arp_ariaware.com
>
>




More information about the Arp mailing list