* {@inheritDoc}
*/
@Override
protected XmlDescriptorObjectMapper createInstance()
throws Exception {
XmlDescriptorObjectMapper mapper = new XmlDescriptorObjectMapper();
for (TypeConverter<?, ?> converter : typeConverters) {
mapper.registerTypeConverter(converter);
}
for (Resource resource : xmlResources) {
InputStream ips = resource.getInputStream();
mapper.addXmlObjectDescriptor(ips);
ips.close();
}
for (File file : xmlFiles) {
mapper.addXmlObjectDescriptor(file);
}
return mapper;
}