use of gov.ca.cwds.data.CmsSystemCodeSerializer 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