Okay, I'm not happy with everything I've written and surely have to update the xngr xml browser code sometime in the near future however ...
Somebody more intelligent than me should have a good look at the (Catalog) Resolver 1.1 API. After implementing version 1.0 before, it again has taken me a couple of hours of pure pain to figure out how to use it this time around.
Anyway for anybody who wants to use the Resolver 1.1 without using the default 'properties file' configuration, try the following:
List<String> files = getFiles(); StringBuilder builder = new StringBuilder(); for (String file : files) { builder.append(file); builder.append(";"); } CatalogManager.getStaticManager().setIgnoreMissingProperties(true); CatalogManager.getStaticManager().setUseStaticCatalog(false); CatalogManager.getStaticManager().setPreferPublic(true); CatalogManager.getStaticManager().setCatalogFiles(builder.toString());
Labels: xml