Package com.jsoniter.spi
Class EmptyExtension
java.lang.Object
com.jsoniter.spi.EmptyExtension
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can 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 encodingvoid
Update how binding is done for the class
-
Constructor Details
-
EmptyExtension
public EmptyExtension()
-
-
Method Details
-
chooseImplementation
Description copied from interface:Extension
Choose the implementation class for interface types- Specified by:
chooseImplementation
in interfaceExtension
- Parameters:
type
- the type to decode to, could be class or parameterized type- Returns:
- the implementation type to use
-
canCreate
Description copied from interface:Extension
Can this extension create object instance for given interface type -
create
Description copied from interface:Extension
Create object instance for given interface type -
createDecoder
Description copied from interface:Extension
Customize type decoding- Specified by:
createDecoder
in 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:Extension
Customize type encoding- Specified by:
createEncoder
in 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:Extension
Update how binding is done for the class- Specified by:
updateClassDescriptor
in interfaceExtension
- Parameters:
desc
- binding information
-