ClassExternalizerFactory externalizerFactory = new MappingClassExternalizerFactory(externalizersByClass);
configuration.setClassExternalizerFactory(externalizerFactory);
}
protected static void addExternalizer( SchematicExternalizer<?> externalizer ) {
Externalizer adapter = new JBossExternalizerAdapter(externalizer);
for (Class<?> clazz : externalizer.getTypeClasses()) {
externalizersByClass.put(clazz, adapter);
}
}