Wiljan Pitlo
-
2006-11-28
- priority: 5 --> 3
Why not implement the SystemConstants as a eplatform.properties file? This way, introducing new constants will be easier and there's no need to change the SystemConstants class over time.
example class:
class SystemConstants extend EpomObject
{
private static Properties properties
= new Properties();
public static String getConstant(String name)
{
return properties.getProperty(name);
}
/* getters and setters */
}
example config:
<systemconstants> <propertiesfile>eplatform_test.properties</propertiesfile>
</systemconstants>