We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.util.
Class ChartSerialization
- java.lang.Object
-
- com.vaadin.flow.component.charts.util.ChartSerialization
-
All Implemented Interfaces:
public class ChartSerialization extends Object implements Serializable
Util class that handles the configuration needed for the model classes to be serialized to JSON.
See Also:
-
-
Method Summary
All Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper()
Create the default
ObjectMapper
used for serialization.static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper(com.fasterxml.jackson.databind.ser.BeanSerializerModifier modifier)
static void
setObjectMapperInstance(com.fasterxml.jackson.databind.ObjectWriter newObjectWriter)
This method can be used to configure the
ObjectMapper
object used to serialize configuration objects to client side.static String
toJSON(AbstractConfigurationObject object)
-
-
-
Method Detail
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
Create the default
ObjectMapper
used for serialization.
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(com.fasterxml.jackson.databind.ser.BeanSerializerModifier modifier)
-
setObjectMapperInstance
public static void setObjectMapperInstance(com.fasterxml.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
-See Also:
-
toJSON
public static String toJSON(AbstractConfigurationObject object)
-
-