Example usage for com.fasterxml.jackson.core.util VersionUtil versionFor

List of usage examples for com.fasterxml.jackson.core.util VersionUtil versionFor

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core.util VersionUtil versionFor.

Prototype

public static Version versionFor(Class<?> cls) 

Source Link

Document

Helper method that will try to load version information for specified class.

Usage

From source file:org.intelligentsia.dowsers.core.serializers.jackson.DowsersJacksonModule.java

/**
 * Build a new instance of DowsersJacksonModule.java.
 *///  ww w. j a va  2  s . c o m
public DowsersJacksonModule() {
    super("dowsers-jackson-core", VersionUtil.versionFor(DowsersJacksonModule.class));

    addKeyDeserializer(Locale.class, new LocaleKeyDeserializer());

    addSerializer(new LocaleJsonSerializer());
    addDeserializer(Locale.class, new LocaleJsonDeserializer());

    addSerializer(new ClassInformationSerializer());
    addDeserializer(ClassInformation.class, new ClassInformationDeserializer());
}