Package com.jsoniter.spi
Class JsoniterSpi
java.lang.Object
com.jsoniter.spi.JsoniterSpi
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ThreadLocal
<Config> private static Config
private static Map
<JsoniterSpi.TypeProperty, Decoder> private static Map
<JsoniterSpi.TypeProperty, Encoder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addNewDecoder
(String cacheKey, Decoder decoder) static void
addNewEncoder
(String cacheKey, Encoder encoder) static void
addNewMapDecoder
(String cacheKey, Decoder mapKeyDecoder) static void
addNewMapEncoder
(String cacheKey, Encoder mapKeyEncoder) private static void
addObjectFactory
(Class clazz, Extension extension) static String
assignConfigName
(Object obj) private static String
static boolean
static void
private static void
copyGlobalMapKeyDecoder
(String configName, Type mapKeyType, Decoder mapKeyDecoder) private static void
copyGlobalMapKeyEncoder
(String configName, Type mapKeyType, Encoder mapKeyEncoder) private static void
copyGlobalPropertyDecoder
(String configName, Type type, String property, Decoder propertyDecoder) private static void
copyGlobalPropertyEncoder
(String configName, Type type, String property, Encoder propertyEncoder) private static void
copyGlobalSettings
(String configName) private static void
copyGlobalTypeDecoder
(String configName, Type type, Decoder typeDecoder) private static void
copyGlobalTypeEncoder
(String configName, Type type, Encoder typeEncoder) static Object
static Config
static Decoder
getDecoder
(String cacheKey) static Config
static Encoder
getEncoder
(String cacheKey) static Decoder
getMapKeyDecoder
(String cacheKey) static String
getMapKeyDecoderCacheKey
(Type mapKeyType) static Encoder
getMapKeyEncoder
(String cacheKey) static String
getMapKeyEncoderCacheKey
(Type mapKeyType) static Extension
getObjectFactory
(Class clazz) static Class
getTypeImplementation
(Class superClazz) static void
registerExtension
(Extension extension) static void
registerMapKeyDecoder
(Type mapKeyType, Decoder mapKeyDecoder) static void
registerMapKeyEncoder
(Type mapKeyType, Encoder mapKeyEncoder) static void
registerPropertyDecoder
(TypeLiteral typeLiteral, String property, Decoder decoder) static void
registerPropertyDecoder
(Class clazz, String property, Decoder decoder) static void
registerPropertyEncoder
(TypeLiteral typeLiteral, String property, Encoder encoder) static void
registerPropertyEncoder
(Class clazz, String property, Encoder encoder) static void
registerTypeDecoder
(TypeLiteral typeLiteral, Decoder decoder) static void
registerTypeDecoder
(Class clazz, Decoder decoder) static void
registerTypeEncoder
(TypeLiteral typeLiteral, Encoder encoder) static void
registerTypeEncoder
(Class clazz, Encoder encoder) static void
registerTypeImplementation
(Class superClazz, Class implClazz) static void
setCurrentConfig
(Config val) static void
setDefaultConfig
(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
-