Class EmptyExtension
java.lang.Object
com.jsoniter.spi.EmptyExtension
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this extension create object instance for given interface typechooseImplementation(Type type) Choose the implementation class for interface typesCreate object instance for given interface typecreateDecoder(String cacheKey, Type type) Customize type decodingcreateEncoder(String cacheKey, Type type) Customize type encodingvoidUpdate how binding is done for the class
-
Constructor Details
-
EmptyExtension
public EmptyExtension()
-
-
Method Details
-
chooseImplementation
Description copied from interface:ExtensionChoose the implementation class for interface types- Specified by:
chooseImplementationin interfaceExtension- Parameters:
type- the type to decode to, could be class or parameterized type- Returns:
- the implementation type to use
-
canCreate
-
create
-
createDecoder
Description copied from interface:ExtensionCustomize type decoding- Specified by:
createDecoderin interfaceExtension- Parameters:
cacheKey- name of the decodertype- change how to decode the type- Returns:
- null, if no special customization needed
-
createEncoder
Description copied from interface:ExtensionCustomize type encoding- Specified by:
createEncoderin interfaceExtension- Parameters:
cacheKey- name of the encodertype- change how to encode the type- Returns:
- null, if not special customization needed
-
updateClassDescriptor
Description copied from interface:ExtensionUpdate how binding is done for the class- Specified by:
updateClassDescriptorin interfaceExtension- Parameters:
desc- binding information
-