use of com.fasterxml.jackson.core.Version in project midpoint by Evolveum.
the class YamlLexicalProcessor method createSerializerModule.
private Module createSerializerModule() {
SimpleModule module = new SimpleModule("MidpointModule", new Version(0, 0, 0, "aa"));
module.addSerializer(QName.class, new QNameSerializer());
module.addSerializer(PolyString.class, new PolyStringSerializer());
module.addSerializer(ItemPath.class, new ItemPathSerializer());
module.addSerializer(ItemPathType.class, new ItemPathTypeSerializer());
// module.addSerializer(JAXBElement.class, new JaxbElementSerializer());
module.addSerializer(XMLGregorianCalendar.class, new XmlGregorianCalendarSerializer());
module.addSerializer(Element.class, new DomElementSerializer());
return module;
}
use of com.fasterxml.jackson.core.Version in project API by ca-cwds.
the class ApiJsonModule method configure.
@Override
protected void configure() {
// Register system code translator with Jackson.
SimpleModule module = new SimpleModule("SystemCodeModule", new Version(0, 1, 0, "a", "alpha", ""));
module.addSerializer(Short.class, new CmsSystemCodeSerializer(Guice.createInjector().getInstance(ApiSystemCodeCache.class)));
bootstrap.getObjectMapper().registerModule(module);
}
Aggregations