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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An instance marshaller provider that ensures all registered marshallers implement ProtoStreamMarshaller.

    Nested classes/interfaces inherited from interface org.infinispan.protostream.SerializationContext

    org.infinispan.protostream.SerializationContext.MarshallerProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    org.infinispan.protostream.ImmutableSerializationContext
    Returns an immutable view of this context.
    getMarshaller(Class<T> targetClass)
     
    getMarshaller(String fullTypeName)
     
    getMarshaller(T object)
     
    void
    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, getTypeNameById

    Methods inherited from interface org.infinispan.protostream.SerializationContext

    getMarshallerDelegate, registerMarshaller, registerMarshallerProvider, registerMarshallerProvider, registerProtoFiles, unregisterMarshaller, unregisterMarshallerProvider, unregisterMarshallerProvider, unregisterProtoFile, unregisterProtoFiles
  • Method Details

    • registerMarshaller

      void registerMarshaller(ProtoStreamMarshaller<?> marshaller)
      Registers a marshaller with this context.
      Parameters:
      marshaller - the marshaller to register
    • getMarshaller

      <T> ProtoStreamMarshaller<T> getMarshaller(Class<T> targetClass)
      Specified by:
      getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContext
    • getMarshaller

      <T> ProtoStreamMarshaller<T> getMarshaller(T object)
      Specified by:
      getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContext
    • getMarshaller

      <T> ProtoStreamMarshaller<T> getMarshaller(String fullTypeName)
      Specified by:
      getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContext
    • getImmutableSerializationContext

      org.infinispan.protostream.ImmutableSerializationContext getImmutableSerializationContext()
      Returns an immutable view of this context.
      Returns:
      an immutable view of this context.