private File home;
- /**
- * Constructor for MirPropertiesConfiguration.
- */
- private MirPropertiesConfiguration(ServletContext ctx) throws IOException {
+ private MirPropertiesConfiguration(ServletContext aContext) throws IOException {
//loading the defaults-config
- super(ctx.getRealPath("/WEB-INF/") + "/default.properties");
+ super(aContext.getRealPath("/WEB-INF/") + "/default.properties");
//loading the user-config
ExtendedProperties userConfig =
- new ExtendedProperties(ctx.getRealPath("/WEB-INF/etc/") + "/config.properties");
+ new ExtendedProperties(aContext.getRealPath("/WEB-INF/etc/") + "/config.properties");
//merging them to one config while overriding the defaults
this.combine(userConfig);
- home = new File(ctx.getRealPath("/WEB-INF/")+"/");
+ home = new File(aContext.getRealPath("/WEB-INF/")+"/");
}
public static synchronized MirPropertiesConfiguration instance() {
/**
* Returns all properties in a Map
+ *
* @return Map
*/
public Map allSettings() {