I'll probably get called insane ... :-)

Generally, when I have a class that contains constants, I do make them
final, but I set their value in a static initializer.  Inside of this
static initializer, I will load the values from a properties file and
then assign them.  This way, my values are easily changed, if need be,
cannot be set after initialization, and my class has no dependency
upon any other class knowning about how to initialize it.

... then, I poke tons of stuff into properties files and XML files and
load them in static initializers.  ... it just seems like a really
easy way to add flexibility.

Good Luck!

-- 
Eddie Bush

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

Reply via email to