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 
     

    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
     
    getMarshaller(Class<T> targetClass)
     
    getMarshaller(String fullTypeName)
     
    getMarshaller(T object)
     
    void
     

    Methods inherited from interface org.infinispan.protostream.ImmutableSerializationContext

    canMarshall, canMarshall, canMarshall, getConfiguration, getDescriptorByName, getDescriptorByTypeId, getEnumDescriptor, getFileDescriptors, getGenericDescriptors, getMessageDescriptor, getTypeIdByName, getTypeNameById

    Methods inherited from interface org.infinispan.protostream.SerializationContext

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

    • registerMarshaller

      void registerMarshaller(ProtoStreamMarshaller<?> marshaller)
    • 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()