* @param inputStream the input stream holding the xml configuration.
*/
public static void read(InputStream inputStream) {
try {
XMLObjectReader reader = XMLObjectReader.newInstance(inputStream);
XMLBinding binding = new XMLBinding() {
protected XMLFormat getFormat(Class forClass) throws XMLStreamException {
if (Configurable.class.isAssignableFrom(forClass))
return new ConfigurableXMLFormat();
return super.getFormat(forClass);
}
};
binding.setAlias(Configurable.class, "Configurable");
reader.setBinding(binding);
// Reads and configures.
reader.read("Configuration", FastTable.class);
} catch (Exception ex) {
LogContext.error(ex);