All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.jacksonjson.SpincastJsonManager.html Maven / Gradle / Ivy

There is a newer version: 0.9.28
Show newest version






SpincastJsonManager (org.spincast:spincast-framework 0.9.21 API)












org.spincast.plugins.jacksonjson

Class SpincastJsonManager

    • Method Detail

      • getGuice

        protected com.google.inject.Injector getGuice()
      • getJacksonPrettyPrinter

        protected com.fasterxml.jackson.core.util.DefaultPrettyPrinter getJacksonPrettyPrinter()
      • getJacksonPrettyPrinterNewline

        protected String getJacksonPrettyPrinterNewline()
      • getJacksonPrettyPrinterIndentation

        protected String getJacksonPrettyPrinterIndentation()
      • getIso8601DateParserDefault

        protected org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParserDefault()
      • getIso8601DateParser1

        protected org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser1()
      • getIso8601DateParser2

        protected org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser2()
      • getIso8601DateParser3

        protected org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser3()
      • getObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      • createObjectManager

        protected com.fasterxml.jackson.databind.ObjectMapper createObjectManager()
        Creates the ObjectMapper
      • configureObjectMapper

        protected void configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Configuration of the ObjectMapper.
      • configureEmptyBeans

        protected void configureEmptyBeans(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • configureMixins

        protected void configureMixins(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • getJsonObjectSerializer

        protected com.fasterxml.jackson.databind.JsonSerializer<IJsonObject> getJsonObjectSerializer()
      • getJsonArraySerializer

        protected com.fasterxml.jackson.databind.JsonSerializer<IJsonArray> getJsonArraySerializer()
      • getDateSerializer

        protected com.fasterxml.jackson.databind.JsonSerializer<Date> getDateSerializer()
      • getJsonObjectDeserializer

        protected com.fasterxml.jackson.databind.JsonDeserializer<IJsonObject> getJsonObjectDeserializer()
      • getJsonArrayDeserializer

        protected com.fasterxml.jackson.databind.JsonDeserializer<IJsonArray> getJsonArrayDeserializer()
      • registerCustomModules

        protected void registerCustomModules(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • registerIJsonObjectModule

        protected void registerIJsonObjectModule(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Register our custom (de)serializers for IJsonObject
      • registerDateModule

        protected void registerDateModule(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Register our custom serializers for dates.
      • toJsonString

        public String toJsonString(Object obj,
                                   boolean pretty)
        Description copied from interface: IJsonManager
        Gets the Json String representation of the specified object.
        Specified by:
        toJsonString in interface IJsonManager
        pretty - if true, the generated String will be formatted.
      • injectDependencies

        protected void injectDependencies(Object obj)
        Once the deserialization of an Object is done, we inject dependencies using Guice.
      • fromJsonString

        public <T> T fromJsonString(String jsonString,
                                    Class<T> clazz)
        Description copied from interface: IJsonManager
        Creates an instance of the specified T type from a Json String.
        Specified by:
        fromJsonString in interface IJsonManager

Copyright © 2016. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy