logln("currentID: " + key.currentID());
logln("has fallback: " + key.fallback());
// SimpleFactory
Object obj = new Object();
SimpleFactory sf = new SimpleFactory(obj, "object");
try {
sf = new SimpleFactory(null, null);
errln("didn't throw exception");
}
catch (IllegalArgumentException e) {
logln("OK: " + e.getMessage());
}
catch (Exception e) {
errln("threw wrong exception" + e);
}
logln(sf.getDisplayName("object", null));
// ICUService
ICUService service = new ICUService();
service.registerFactory(sf);