Interface EncoderRegistry

All Superinterfaces:
org.infinispan.marshall.core.EncoderRegistry
All Known Implementing Classes:
DefaultEncoderRegistry

public interface EncoderRegistry extends org.infinispan.marshall.core.EncoderRegistry
Extends Infinispan's EncoderRegistry adding the ability to unregister transcoders.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    convert(Object object, org.infinispan.commons.dataconversion.MediaType fromType, org.infinispan.commons.dataconversion.MediaType toType)
     
    void
    unregisterTranscoder(org.infinispan.commons.dataconversion.MediaType type)
    Unregisters the transcoding support for the specified media type.

    Methods inherited from interface org.infinispan.marshall.core.EncoderRegistry

    getTranscoder, getTranscoder, isConversionSupported, registerTranscoder
  • Method Details

    • unregisterTranscoder

      void unregisterTranscoder(org.infinispan.commons.dataconversion.MediaType type)
      Unregisters the transcoding support for the specified media type.
      Parameters:
      type - a media type
    • convert

      default Object convert(Object object, org.infinispan.commons.dataconversion.MediaType fromType, org.infinispan.commons.dataconversion.MediaType toType)
      Specified by:
      convert in interface org.infinispan.marshall.core.EncoderRegistry