Refactored config file resource loading to make it easier to load config files from class path when embedding.
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user