/** * Constructor has to be private, as we are using singleton */ private Loader(String path) throws Exception { // only if object is created by createInstance (which gives it context) if (!path.isEmpty()) { // start with loading config file Properties properties = loadAndParseConfigurationFile(path); if (properties == null) { throw new Exception(); } settings = new Settings(properties); } }
/** * Constructor has to be private, as we are using singleton */ private Loader(String path) throws Exception { // only if object is created by createInstance (which gives it context) if (!path.isEmpty()) { // start with loading config file properties = loadAndParseConfigurationFile(path); if (properties == null) { throw new Exception(); } settings = new Settings(properties); } }
/** * Constructor has to be private, as we are using singleton */ private Loader(String path) throws Exception { // only if object is created by createInstance (which gives it context) if (!path.isEmpty()) { // start with loading config file properties = loadAndParseConfigurationFile(path); if (properties == null) { throw new Exception(); } settings = new Settings(properties); } }
/** * Constructor has to be private, as we are using singleton */ private Loader(String path) throws Exception { // only if object is created by createInstance (which gives it context) if (!path.isEmpty()) { // start with loading config file properties = loadAndParseConfigurationFile(path); if (properties == null) { throw new Exception(); } settings = new Settings(properties); } }