Make a properties file, and instantiate a bean when you need that type of property. There aren't many good reasons to hardcode things. At the very least, make the hardcoded items into constants: public static final int XYZZY = 0;
That being said, I'll hardcode to get something working or for prototyping. Then I'll go back and generalize it.
Make a properties file, and instantiate a bean when you need that type of property. There aren't many good reasons to hardcode things. At the very least, make the hardcoded items into constants:
public static final int XYZZY = 0;
That being said, I'll hardcode to get something working or for prototyping. Then I'll go back and generalize it.