Class StorageViewDataConverterRegistry.Default
java.lang.Object
one.microstream.storage.restadapter.types.StorageViewDataConverterRegistry.Default
- All Implemented Interfaces:
StorageViewDataConverterProvider
,StorageViewDataConverterRegistry
- Enclosing interface:
- StorageViewDataConverterRegistry
public static class StorageViewDataConverterRegistry.Default extends Object implements StorageViewDataConverterRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.restadapter.types.StorageViewDataConverterRegistry
StorageViewDataConverterRegistry.Default
-
Method Summary
Modifier and Type Method Description boolean
addConverter(StorageViewDataConverter converter, String format)
Registers a new data converter.StorageViewDataConverter
getConverter(String format)
Get the converter for the requested format.
-
Method Details
-
getConverter
Description copied from interface:StorageViewDataConverterProvider
Get the converter for the requested format.- Specified by:
getConverter
in interfaceStorageViewDataConverterProvider
- Specified by:
getConverter
in interfaceStorageViewDataConverterRegistry
- Parameters:
format
- the format to get the converter for- Returns:
- the registered converter, or
null
if none was found
-
addConverter
Description copied from interface:StorageViewDataConverterRegistry
Registers a new data converter.- Specified by:
addConverter
in interfaceStorageViewDataConverterRegistry
- Parameters:
converter
- the converterformat
- the handled format- Returns:
- true if successful registered, otherwise false
-