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:org.lable.rfc3881.auditlogger.serialization.RFC3881Module.java
public RFC3881Module() { super("IETF/RFC 3881 JSON module", new Version(1, 0, 0, null, null, null)); addSerializer(Referenceable.class, new ReferenceableSerializer()); addDeserializer(CodeReference.class, new CodeReferenceDeserializer()); }
From source file:org.springframework.social.exfm.api.impl.json.ExFmModule.java
public ExFmModule() { super("ExFmModule", new Version(1, 0, 0, null, null, null)); }
From source file:org.springframework.social.mixcloud.api.impl.json.MixcloudModule.java
public MixcloudModule() { super("MixcloudProfile", new Version(1, 0, 0, null, null, null)); }
From source file:com.bazaarvoice.jolt.JsonUtilImpl.java
public static void configureStockJoltObjectMapper(ObjectMapper objectMapper) { // All Json maps should be deserialized into LinkedHashMaps. SimpleModule stockModule = new SimpleModule("stockJoltMapping", new Version(1, 0, 0, null, null, null)) .addAbstractTypeMapping(Map.class, LinkedHashMap.class); objectMapper.registerModule(stockModule); // allow the mapper to parse JSON with comments in it objectMapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true); }
From source file:com.wealdtech.jackson.modules.WealdJodaModule.java
@Override public Version version() { if (this.version == null) { this.version = new Version(1, 0, 0, null, "com.wealdtech", "utils"); }//w w w. ja va2s . c o m return this.version; }
From source file:com.basistech.AnnotatedDataModelModule.java
public AnnotatedDataModelModule() { //TODO: set up a filtered property file to deliver these facts. super("ModuleName", new Version(2, 0, 0, "", "com.basistech", "adm-json")); }
From source file:org.springframework.social.soundcloud.api.impl.json.SoundCloudModule.java
public SoundCloudModule() { super("SoundCloudModule", new Version(1, 0, 0, null, null, null)); }
From source file:com.basho.riak.client.raw.http.NamedErlangFunctionDeserializerTest.java
/** * @throws java.lang.Exception//from ww w. j av a 2 s .com */ @Before public void setUp() throws Exception { objectMapper = new ObjectMapper(); objectMapper.registerModule( new SimpleModule("test_quorm_deserialzer", new Version(1, 0, 0, "SNAPSHOT", null, null)) .addDeserializer(NamedErlangFunction.class, new NamedErlangFunctionDeserializer())); }
From source file:com.basho.riak.client.raw.http.QuorumDeserializerTest.java
/** * @throws java.lang.Exception/* w w w . j a v a 2 s . c o m*/ */ @Before public void setUp() throws Exception { objectMapper = new ObjectMapper(); objectMapper.registerModule( new SimpleModule("test_quorm_deserialzer", new Version(1, 0, 0, "SNAPSHOT", null, null)) .addDeserializer(Quorum.class, new QuorumDeserializer())); }
From source file:org.springframework.data.geo.GeoModule.java
/** * Creates a new {@link GeoModule} registering mixins for common geo-spatial types. *///from w w w . j av a2 s. c om public GeoModule() { super("Spring Data Geo Mixins", new Version(1, 0, 0, null, "org.springframework.data", "spring-data-commons-geo")); setMixInAnnotation(Distance.class, DistanceMixin.class); setMixInAnnotation(Point.class, PointMixin.class); setMixInAnnotation(Box.class, BoxMixin.class); setMixInAnnotation(Circle.class, CircleMixin.class); setMixInAnnotation(Polygon.class, PolygonMixin.class); }