List of usage examples for com.fasterxml.jackson.core Version Version
public Version(int major, int minor, int patchLevel, String snapshotInfo, String groupId, String artifactId)
From source file:com.yahoo.elide.jsonapi.JsonApiSerializer.java
public static Module getModule(EntityDictionary dictionary) { SimpleModule jsonApiModule = new SimpleModule("JsonApiModule", new Version(1, 0, 0, null, null, null)); jsonApiModule.addSerializer(new JsonApiSerializer<>(Set.class, dictionary)); return jsonApiModule; }
From source file:org.mythtv.services.api.JacksonUtils.java
public static ObjectMapper initObjectMapper() { StdDelegatingDeserializer<ArrayOfString> delegatingDeserializer = new StdDelegatingDeserializer<ArrayOfString>( new ArrayOfStringConverter()); SimpleModule customModule = new SimpleModule("org.mythtv.services.api.module", new Version(1, 0, 0, null, null, null)).addDeserializer(ArrayOfString.class, delegatingDeserializer); ObjectMapper objectMapper = new ObjectMapper(); objectMapper.registerModule(new JodaModule()); objectMapper.registerModule(customModule); objectMapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true); return objectMapper; }
From source file:org.gytheio.messaging.jackson.ObjectMapperFactory.java
public static ObjectMapper createInstance() { QpidJsonBodyCleanerObjectMapper mapper = new QpidJsonBodyCleanerObjectMapper(); mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY); SimpleModule module = new SimpleModule("GytheioJackson", new Version(0, 1, 0, "SNAPSHOT", "org.gytheio", "gytheio-messaging-commons")); module.addKeyDeserializer(Class.class, new JsonClassKeyDeserializer()); mapper.registerModule(module);//w w w . jav a 2s. c om return mapper; }
From source file:io.sidecar.ErrorModule.java
public ErrorModule() { super("Error Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:io.sidecar.access.AccessModule.java
public AccessModule() { super("Access Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:io.sidecar.query.QueryModule.java
public QueryModule() { super("Query Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:io.sidecar.notification.NotificationModule.java
public NotificationModule() { super("Notification Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:io.sidecar.event.EventModule.java
public EventModule() { super("Event Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:io.sidecar.org.OrgModule.java
public OrgModule() { super("Organization Module", new Version(1, 0, 0, "SNAPSHOT", "io.sidecar", "model")); }
From source file:com.googlecode.wickedcharts.highcharts.jackson.WickedChartsJacksonModule.java
public WickedChartsJacksonModule() { super("wicked-charts", new Version(1, 3, 0, null, "com.googlecode.wicked-charts", "wicked-charts")); }