On Jan 12, 2005, at 09:13, KR Kumar wrote:
> Is it better to use a Constants java class and declare all the
> constants
> or use a key value pair properties file backed by a Properties class?
Why not both? You could declare a constant which takes its value from a
property file.
Talking of properties, perhaps I could interest you in PL:
http://alt.textdrive.com/pl/
It provides a simple text format to handle basic things like Map and
Collection:
http://alt.textdrive.com/pl/3/pl-the-format
http://alt.textdrive.com/assets/public/PL-ABNF.txt
As well as a drop-in replacement for
java.util.Properties:
http://alt.textdrive.com/download/6/pl-the-download
Cheers
--
PA
http://alt.textdrive.com/
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".