-
Notifications
You must be signed in to change notification settings - Fork 484
Features
allenxwang edited this page Jun 4, 2012
·
29 revisions
Pablo is a Java library that provides APIs to access and utilize properties that can change dynamically at runtime. It includes the following features:
Pablo provides classes that represent dynamic properties where the values are of specific types and can change at runtime.
Instead of writing code like this:
String prop = System.getProperty("myProperty");
try {
int x = Integer.parseInt(prop);
if (x > 0) {
// ...
}
} catch (NumberFormatException e) {
// handle format issues
}
Out of the box, in a fixed interval, Pablo will load configuration sources from a local file on classpath as well as a set of URLs defined in a system property.
You can define your own configuration source and poll scheduler by extending appropriate interface/class.