lib
A collection of java libraries including:
- pahakia-fault
Fault - the once-for-all exception, see blog: http://tri-katch.blogspot.com. - pahakia-apt
Annotation processing at build/compile time.
All annotated classes are recorded in META-INF/annotated-classes.
It works both with Eclipse and Maven. - pahakia-annotation-registry
Build a registry from all META-INF/annotated-classes on classpath, keyed by annotation name. - pahakia-settings
Centralize program settings in one place: Settings.
Individual setting can be defined so that it can:
- be validated
- have default value.
BooleanSetting: true or falsePatternSetting: pattern in regular expressionRangeSetting: range between 2 integersValidValuesSetting: 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();