Class JsoniterSpi
java.lang.Object
com.jsoniter.spi.JsoniterSpi
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ThreadLocal<Config> private static Configprivate static Map<JsoniterSpi.TypeProperty, Decoder> private static Map<JsoniterSpi.TypeProperty, Encoder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddNewDecoder(String cacheKey, Decoder decoder) static voidaddNewEncoder(String cacheKey, Encoder encoder) static voidaddNewMapDecoder(String cacheKey, Decoder mapKeyDecoder) static voidaddNewMapEncoder(String cacheKey, Encoder mapKeyEncoder) private static voidaddObjectFactory(Class clazz, Extension extension) static StringassignConfigName(Object obj) private static Stringstatic booleanstatic voidprivate static voidcopyGlobalMapKeyDecoder(String configName, Type mapKeyType, Decoder mapKeyDecoder) private static voidcopyGlobalMapKeyEncoder(String configName, Type mapKeyType, Encoder mapKeyEncoder) private static voidcopyGlobalPropertyDecoder(String configName, Type type, String property, Decoder propertyDecoder) private static voidcopyGlobalPropertyEncoder(String configName, Type type, String property, Encoder propertyEncoder) private static voidcopyGlobalSettings(String configName) private static voidcopyGlobalTypeDecoder(String configName, Type type, Decoder typeDecoder) private static voidcopyGlobalTypeEncoder(String configName, Type type, Encoder typeEncoder) static Objectstatic Configstatic DecodergetDecoder(String cacheKey) static Configstatic EncodergetEncoder(String cacheKey) static DecodergetMapKeyDecoder(String cacheKey) static StringgetMapKeyDecoderCacheKey(Type mapKeyType) static EncodergetMapKeyEncoder(String cacheKey) static StringgetMapKeyEncoderCacheKey(Type mapKeyType) static ExtensiongetObjectFactory(Class clazz) static ClassgetTypeImplementation(Class superClazz) static voidregisterExtension(Extension extension) static voidregisterMapKeyDecoder(Type mapKeyType, Decoder mapKeyDecoder) static voidregisterMapKeyEncoder(Type mapKeyType, Encoder mapKeyEncoder) static voidregisterPropertyDecoder(TypeLiteral typeLiteral, String property, Decoder decoder) static voidregisterPropertyDecoder(Class clazz, String property, Decoder decoder) static voidregisterPropertyEncoder(TypeLiteral typeLiteral, String property, Encoder encoder) static voidregisterPropertyEncoder(Class clazz, String property, Encoder encoder) static voidregisterTypeDecoder(TypeLiteral typeLiteral, Decoder decoder) static voidregisterTypeDecoder(Class clazz, Decoder decoder) static voidregisterTypeEncoder(TypeLiteral typeLiteral, Encoder encoder) static voidregisterTypeEncoder(Class clazz, Encoder encoder) static voidregisterTypeImplementation(Class superClazz, Class implClazz) static voidsetCurrentConfig(Config val) static voidsetDefaultConfig(Config val)
-
Field Details
-
defaultConfig
-
extensions
-
typeImpls
-
globalMapKeyDecoders
-
globalMapKeyEncoders
-
globalTypeDecoders
-
globalTypeEncoders
-
globalPropertyDecoders
-
globalPropertyEncoders
-
currentConfig
-
configNames
-
mapKeyEncoders
-
mapKeyDecoders
-
encoders
-
decoders
-
objectFactories
-
-
Constructor Details
-
JsoniterSpi
public JsoniterSpi()
-
-
Method Details
-
setCurrentConfig
-
clearCurrentConfig
public static void clearCurrentConfig() -
getCurrentConfig
-
setDefaultConfig
-
getDefaultConfig
-
assignConfigName
-
assignNewConfigName
-
registerExtension
-
getExtensions
-
registerMapKeyDecoder
-
registerMapKeyEncoder
-
registerTypeImplementation
-
getTypeImplementation
-
registerTypeDecoder
-
registerTypeDecoder
-
registerTypeEncoder
-
registerTypeEncoder
-
registerPropertyDecoder
-
registerPropertyDecoder
public static void registerPropertyDecoder(TypeLiteral typeLiteral, String property, Decoder decoder) -
registerPropertyEncoder
-
registerPropertyEncoder
public static void registerPropertyEncoder(TypeLiteral typeLiteral, String property, Encoder encoder) -
copyGlobalSettings
-
copyGlobalPropertyEncoder
-
copyGlobalPropertyDecoder
-
copyGlobalTypeEncoder
-
copyGlobalTypeDecoder
-
copyGlobalMapKeyDecoder
-
copyGlobalMapKeyEncoder
-
getMapKeyEncoderCacheKey
-
getMapKeyDecoderCacheKey
-
addNewMapDecoder
-
getMapKeyDecoder
-
addNewMapEncoder
-
getMapKeyEncoder
-
getDecoder
-
addNewDecoder
-
getEncoder
-
addNewEncoder
-
canCreate
-
create
-
getObjectFactory
-
addObjectFactory
-