Yeah, in "bootstrapping" I often run a static initializer right off the bat that loads bootstrap properties from the jar, then I set constants using private static getters that access the loaded properties underneath. Don't know where I picked that up (it's more useful in Swing), but it makes it easy to have a lot of configurable constants. :)

By the way, real nice site you have there (I'm assuming it is yours). Great design.

Erik


PA wrote:


On Jan 26, 2005, at 20:16, Erik Weber wrote:

There is more than one approach.


Alternatively you can still use a final, but only assign a value to it upon initialization. No further change will be allowed after that. So many obscure ways to shot yourself in the foot :o)

Cheers

--
PA
http://alt.textdrive.com/


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



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



Reply via email to