protected void loadConfig ( final String file ) throws FileNotFoundException , IOException { final FileInputStream file_stream = new FileInputStream ( file ) ; try { final Properties props = new Properties ( ) ; props . load ( file_stream ) ; // load the hash map loadHashMap ( props ) ; // no exceptions thrown, so save the valid path and exit LOG . info ( "Successfully loaded configuration file: " + file ) ; config_location = file ; } finally { file_stream . close ( ) ; } }
Attempts to load the configuration from the given location