ConfigFile() throws IOException { String propertyValue = System.getProperty("config.parser"); if (propertyValue == null) { parserClassName = DEFAULT_PARSER_CLASS; } else { parserClassName = propertyValue; } this.epoch = 1; parser = ConfigFile.loadParser(parserClassName); parser.initialize(null); }
ConfigFile() throws IOException { String propertyValue = System.getProperty("config.parser"); if (propertyValue == null) { parserClassName = DEFAULT_PARSER_CLASS; } else { parserClassName = propertyValue; } this.epoch = 1; parser = ConfigFile.loadParser(parserClassName); parser.initialize(null); }
public void refresh() throws AuthException { synchronized (this) { ConfigParser nextParser; int next = this.epoch + 1; try { nextParser = ConfigFile.loadParser(parserClassName); } catch (IOException ioe) { throw new AuthException(ioe.toString()); } this.epoch = (next == 0 ? 1 : next); parser = nextParser; } }
public void refresh() throws AuthException { synchronized (this) { ConfigParser nextParser; int next = this.epoch + 1; try { nextParser = ConfigFile.loadParser(parserClassName); } catch (IOException ioe) { throw new AuthException(ioe.toString()); } this.epoch = (next == 0 ? 1 : next); parser = nextParser; } }