A collection of java libraries including:
Fault - the once-for-all exception, see blog: http://tri-katch.blogspot.com.
Annotation processing at build/compile time.
All annotated classes are recorded in META-INF/annotated-classes.
It works both with Eclipse and Maven.
Build a registry from all META-INF/annotated-classes on classpath, keyed by annotation name.
Centralize program settings in one place: Settings.
Individual setting can be defined so that it can:
- be validated
- have default value.
BooleanSetting: true or false
PatternSetting: pattern in regular expression
RangeSetting: range between 2 integers
ValidValuesSetting: list of valid value strings
To retrieve a setting value, call a get... method on the setting descriptor, i.e.
BooleanSetting bs = new BooleanSetting("consider.holiday", "if consider holiday", false);
// NOTE: the above must be defined as constant in a class annotated with @RuntimeSettings.
boolean considerHoliday = bs.getBoolean();