Package cz.o2.proxima.core.scheme
Class JsonSerializer
- java.lang.Object
-
- cz.o2.proxima.core.scheme.JsonSerializer
-
- All Implemented Interfaces:
ValueSerializerFactory
,java.io.Serializable
@Experimental @AutoService(ValueSerializerFactory.class) public class JsonSerializer extends java.lang.Object implements ValueSerializerFactory
A serializer of JSON structures.Not thet this serializer doesn't parse the JSON, it just enables handling the input String as already serialized JSON type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAcceptableScheme()
Retrieve scheme that of URI that this parser accepts.java.lang.String
getClassName(java.net.URI specifier)
Retrieve class type for given scheme.<T> ValueSerializer<T>
getValueSerializer(java.net.URI specifier)
GetValueSerializer
for given scheme.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.scheme.ValueSerializerFactory
canProvideTransactionSerializer, createTransactionSerializerSchemeProvider
-
-
-
-
Method Detail
-
getAcceptableScheme
public java.lang.String getAcceptableScheme()
Description copied from interface:ValueSerializerFactory
Retrieve scheme that of URI that this parser accepts.- Specified by:
getAcceptableScheme
in interfaceValueSerializerFactory
- Returns:
- name of acceptable scheme of this factory
-
getValueSerializer
public <T> ValueSerializer<T> getValueSerializer(java.net.URI specifier)
Description copied from interface:ValueSerializerFactory
GetValueSerializer
for given scheme.- Specified by:
getValueSerializer
in interfaceValueSerializerFactory
- Type Parameters:
T
- type of deserialized data- Parameters:
specifier
- URI specifier of this data type- Returns:
ValueSerializer
for the scheme
-
getClassName
public java.lang.String getClassName(java.net.URI specifier)
Description copied from interface:ValueSerializerFactory
Retrieve class type for given scheme.- Specified by:
getClassName
in interfaceValueSerializerFactory
- Parameters:
specifier
- URI specifier of this data type- Returns:
- full name of class
-
-