Interface SerializationContext
- All Superinterfaces:
org.infinispan.protostream.ImmutableSerializationContext,org.infinispan.protostream.SerializationContext
- All Known Implementing Classes:
DefaultSerializationContext
public interface SerializationContext
extends org.infinispan.protostream.SerializationContext
Extension of
SerializationContext that ensures all registered marshallers implement ProtoStreamMarshaller.
Overrides getMarshaller(Class) getMarshaller(String) and getMarshaller(Object) to return a ProtoStreamMarshaller.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface org.infinispan.protostream.SerializationContext
org.infinispan.protostream.SerializationContext.MarshallerProvider -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.protostream.ImmutableSerializationContext<T> ProtoStreamMarshaller<T> getMarshaller(Class<T> targetClass) <T> ProtoStreamMarshaller<T> getMarshaller(String fullTypeName) <T> ProtoStreamMarshaller<T> getMarshaller(T object) voidregisterMarshaller(ProtoStreamMarshaller<?> marshaller) Methods inherited from interface org.infinispan.protostream.ImmutableSerializationContext
canMarshall, canMarshall, canMarshall, getConfiguration, getDescriptorByName, getDescriptorByTypeId, getEnumDescriptor, getFileDescriptors, getGenericDescriptors, getMessageDescriptor, getTypeIdByName, getTypeNameByIdMethods inherited from interface org.infinispan.protostream.SerializationContext
registerMarshaller, registerMarshallerProvider, registerMarshallerProvider, registerProtoFiles, unregisterMarshaller, unregisterMarshallerProvider, unregisterMarshallerProvider, unregisterProtoFile, unregisterProtoFiles
-
Method Details
-
registerMarshaller
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getImmutableSerializationContext
org.infinispan.protostream.ImmutableSerializationContext getImmutableSerializationContext()
-