*/
private NotifyFactory() {
Class calcClass = Config.getInstance().getUrlCalculator();
if (!UrlCalculator.class.isAssignableFrom(calcClass)) {
throw new ConfigException("Class '" + calcClass + "' cannot be assigned to interface '" +
UrlCalculator.class.getName() + "'");
}
try {
urlCalculator = (UrlCalculator) calcClass.newInstance();
} catch (Exception e) {
throw new ConfigException("Unable to instantiate the class '" + calcClass.getName() + "'", e);
}
}