public void setJournalType(final Class< ? extends Recorder> journalType, String... args) { checkExtendingQuerier(journalType); this.journalXml = "<journal name='" + JOURNAL_DEFAULT_KEY + "' class='" + journalType.getName() + "'> " + Misc.LINE_SEPARATOR; for (String arg : args) { this.journalXml += defaultIndent + arg + Misc.LINE_SEPARATOR; } this.journalXml += "</journal>"; }
public void setHistoryType(final Class< ? extends Archiver> historyType, String... historyArgs) { checkExtendingQuerier(historyType); this.historyXml = "<history name='" + HISTORY_DEFAULT_KEY + "' class='" + historyType.getName() + "'>" + Misc.LINE_SEPARATOR; for (String arg : historyArgs) { this.historyXml += defaultIndent + arg + Misc.LINE_SEPARATOR; } this.historyXml += "</history>"; }