Package org.jwcarman.codec.autoconfigure
package org.jwcarman.codec.autoconfigure
Spring Boot auto-configuration for the backends. Exactly one
CodecFactory bean is
registered, chosen by precedence — an application-defined ThreadSafeFory bean first, then
Jackson 3, Jackson 2, Gson, JSON-B and Protocol Buffers by classpath presence — and a
user-defined CodecFactory bean always wins. With Spring Data Redis and Boot's cache
support present, the Redis cache values named in codec.redis.cache are serialized through
that factory.-
ClassesClassDescriptionSerializes Redis cache values through the application's
CodecFactory.Settings for serializing Redis cache values through the application'sCodecFactory.Registers aForyCodecFactorywhen the application defines aThreadSafeForybean.Auto-configures aGsonCodecFactorywhen the Gson backend is on the classpath and no otherCodecFactorybean exists.Auto-configures aJackson2CodecFactorywhen the Jackson 2.x backend is on the classpath and no otherCodecFactorybean exists.Auto-configures aJacksonCodecFactorywhen the Jackson 3.x backend is on the classpath and no otherCodecFactorybean exists.Registers aJsonbCodecFactorywhen the JSON-B backend and API are on the classpath and no other backend has claimed theCodecFactoryslot.Auto-configures aProtobufCodecFactorywhen the Protocol Buffers backend is on the classpath and no otherCodecFactorybean exists.