package journal.action; import journal.reader.JournalEntry; import journal.reader.Options; // Visitor interface // Implemented by whoever wants to be called with the correct action // Depending on the token public interface Action { public void help(); public void start(Options options) throws Exception; public void finish() throws Exception; public String[] parseArgs(String[] args); public void putValue(JournalEntry entry) throws Exception; public void replaceValue(JournalEntry entry) throws Exception; public void deleteValue(JournalEntry entry) throws Exception; public void verifyValue(JournalEntry entry) throws Exception; public void commitMarker(JournalEntry entry) throws Exception; public void flushMarker(JournalEntry entry) throws Exception; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 8296 | Sven Erik Knop |
Clean-up: instead of casting in every action, cast only once in the dispatcher. Should make code saner and safer. No functional change. |
||
#4 | 8200 | Sven Erik Knop |
JournalReader can now process delete records (@dl@). Also fixed processing of type 12 note records = journaldbchecksum |
||
#3 | 8023 | Sven Erik Knop |
Complete rewrite of the configuration file, now based on an ini-file format. The ini file has a general [reader] section for settings like verbose, outputFile, case-sensitivity and so on. It also allows to set up a range of Actions and Filters. The section name here is the fully classified class name, followed by settings for the particular actions. An example will make this clearer: ================================================================ [reader] verbose=true [journal.action.UserRenamer] fileName=user.txt patch=True outputFile=user.out [journal.action.ClientRenamer] fileName=client.txt outputFile=client.out patch=true ================================================================ I will provide more example set-ups in the near future. Filters are classes implementing journal.action.Filter (soon to be journal.filter.Filter) which can be chained together and are all executed before the actions. Actions are applied in order that they are given in the config file. |
||
#2 | 7874 | Sven Erik Knop | Upgrade to 2010.2 including new JournalNotes. | ||
#1 | 7527 | Sven Erik Knop |
JournalReader, now in its proper place. Documentation to follow. |