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 interfaceAn instance marshaller provider that ensures all registered marshallers implementProtoStreamMarshaller.Nested classes/interfaces inherited from interface org.infinispan.protostream.SerializationContext
org.infinispan.protostream.SerializationContext.MarshallerProvider -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.protostream.ImmutableSerializationContextReturns an immutable view of this context.<T> ProtoStreamMarshaller<T> getMarshaller(Class<T> targetClass) <T> ProtoStreamMarshaller<T> getMarshaller(String fullTypeName) <T> ProtoStreamMarshaller<T> getMarshaller(T object) voidregisterMarshaller(ProtoStreamMarshaller<?> marshaller) Registers a marshaller with this context.Methods inherited from interface org.infinispan.protostream.ImmutableSerializationContext
canMarshall, canMarshall, canMarshall, getConfiguration, getDescriptorByName, getDescriptorByTypeId, getEnumDescriptor, getFileDescriptors, getGenericDescriptors, getMarshallerDelegate, getMessageDescriptor, getTypeIdByName, getTypeNameByIdMethods inherited from interface org.infinispan.protostream.SerializationContext
getMarshallerDelegate, registerMarshaller, registerMarshallerProvider, registerMarshallerProvider, registerProtoFiles, unregisterMarshaller, unregisterMarshallerProvider, unregisterMarshallerProvider, unregisterProtoFile, unregisterProtoFiles
-
Method Details
-
registerMarshaller
Registers a marshaller with this context.- Parameters:
marshaller- the marshaller to register
-
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()Returns an immutable view of this context.- Returns:
- an immutable view of this context.
-