Class MapSerialization

java.lang.Object
com.vaadin.componentfactory.maps.util.MapSerialization
All Implemented Interfaces:
Serializable

public class MapSerialization extends Object implements Serializable
Util class that handles the configuration needed for the model classes to be serialized to JSON.
Version:
$Id: $Id
Author:
Vaadin
See Also:
  • Constructor Details

    • MapSerialization

      public MapSerialization()
  • Method Details

    • createObjectMapper

      public static tools.jackson.databind.ObjectMapper createObjectMapper()
      Create the default ObjectMapper used for serialization.
      Returns:
      a ObjectMapper object.
    • createObjectMapper

      public static tools.jackson.databind.ObjectMapper createObjectMapper(tools.jackson.databind.ser.ValueSerializerModifier modifier)

      createObjectMapper.

      Parameters:
      modifier - a ValueSerializerModifier object.
      Returns:
      a ObjectMapper object.
    • setObjectWriter

      public static void setObjectWriter(tools.jackson.databind.ObjectWriter newObjectWriter)
      This method can be used to configure the ObjectMapper object used to serialize configuration objects to client side. If users have made their extensions to underlying library and wish to build a typed Java API for it, adding custom serializers might be needed.
      Parameters:
      newObjectWriter - a ObjectWriter object.
      See Also:
    • toJSON

      public static String toJSON(AbstractConfigurationObject object)

      toJSON.

      Parameters:
      object - a AbstractConfigurationObject object.
      Returns:
      a String object.