Where to store global variables like file paths in java ?
Posted
by Jules Olléon
on Stack Overflow
See other posts from Stack Overflow
or by Jules Olléon
Published on 2010-04-11T15:55:33Z
Indexed on
2010/04/11
16:03 UTC
Read the original article
Hit count: 221
In my application I use some icons. Where should I store the path of the directory containing those icons ?
The icons are used in different classes so it doesn't really make sense to store them in one of those classes in particular.
I read that global variables are evil, but is it acceptable to use a class (eg Commons
) containing only public static final
fields to store this king of data ? What solution is used in professional applications ?
© Stack Overflow or respective owner