Package cz.o2.proxima.scheme.proto
Class ProtoSerializerFactory
- java.lang.Object
-
- cz.o2.proxima.scheme.proto.ProtoSerializerFactory
-
- All Implemented Interfaces:
ValueSerializerFactory
,java.io.Serializable
@AutoService(ValueSerializerFactory.class) public class ProtoSerializerFactory extends java.lang.Object implements ValueSerializerFactory
Serializer from protobuffers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtoSerializerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProvideTransactionSerializer()
TransactionSerializerSchemeProvider
createTransactionSerializerSchemeProvider()
java.lang.String
getAcceptableScheme()
Retrieve scheme that of URI that this parser accepts.<T> ValueSerializer<T>
getValueSerializer(java.net.URI scheme)
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
getClassName
-
-
-
-
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 scheme)
Description copied from interface:ValueSerializerFactory
GetValueSerializer
for given scheme.- Specified by:
getValueSerializer
in interfaceValueSerializerFactory
- Type Parameters:
T
- type of deserialized data- Parameters:
scheme
- URI specifier of this data type- Returns:
ValueSerializer
for the scheme
-
canProvideTransactionSerializer
public boolean canProvideTransactionSerializer()
- Specified by:
canProvideTransactionSerializer
in interfaceValueSerializerFactory
- Returns:
true
if this serializer can provideTransactionSerializerSchemeProvider
.
-
createTransactionSerializerSchemeProvider
public TransactionSerializerSchemeProvider createTransactionSerializerSchemeProvider()
- Specified by:
createTransactionSerializerSchemeProvider
in interfaceValueSerializerFactory
-
-