BaseFilter.java #4

  • //
  • guest/
  • sven_erik_knop/
  • java/
  • JournalReader/
  • src/
  • journal/
  • action/
  • BaseFilter.java
  • Commits
# Change User Description Committed
#4 8024 Sven Erik Knop Refactoring: moved the filter into their own package
#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 8021 Sven Erik Knop Add compound action, which contains a list of actions that will all be
invoked on a JournalEntry. Needs refactoring of the way Options are processed,
which will come in a later change.
#1 7527 Sven Erik Knop JournalReader, now in its proper place.

Documentation to follow.