Refactored config file resource loading to make it easier to load config files from class path when embedding.

This commit is contained in:
Neeme Praks
2016-12-31 11:46:32 +01:00
committed by andsel
parent c36ebc648b
commit ac93f04dde
12 changed files with 373 additions and 167 deletions
@@ -23,6 +23,8 @@ import io.moquette.BrokerConstants;
* @author andrea
*/
public abstract class IConfig {
public static final String DEFAULT_CONFIG = "config/moquette.conf";
public abstract void setProperty(String name, String value);
public abstract String getProperty(String name);
@@ -39,4 +41,7 @@ public abstract class IConfig {
setProperty(BrokerConstants.AUTHENTICATOR_CLASS_NAME, "");
setProperty(BrokerConstants.AUTHORIZATOR_CLASS_NAME, "");
}
public abstract IResourceLoader getResourceLoader();
}