Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: Properties file or a Constants Class

arun

2005-01-12

Replies:

one best which we are using is keep the name value pair in properties file and define a constant class ( Interface) which have final or static variable having the values of keys.
I mean to say here is combine the both things , keep some Contents in Constant class and some in properties files.
this way u can have benefit of both.
 
-----Original Message-----
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@JAVA.SUN.COM]On Behalf Of KR Kumar
Sent: Wednesday, January 12, 2005 1:43 PM
To: J2EE-INTEREST@JAVA.SUN.COM
Subject: Properties file or a Constants Class

Hi guys,

 

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?

 

Thanx & Regards
KR Kumar

 

DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

©2008 junlu.com - Jax Systems, LLC, U.S.A.