Interface EncoderRegistry

  • All Known Implementing Classes:
    EncoderRegistryImpl

    public interface EncoderRegistry
    Manages existent Encoder, Wrapper and Transcoder instances.
    Since:
    9.1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.infinispan.commons.dataconversion.Encoder getEncoder​(Class<? extends org.infinispan.commons.dataconversion.Encoder> encoderClass, short encoderId)  
      org.infinispan.commons.dataconversion.Transcoder getTranscoder​(org.infinispan.commons.dataconversion.MediaType type1, org.infinispan.commons.dataconversion.MediaType type2)
      Obtain an instance of Transcoder from the registry.
      org.infinispan.commons.dataconversion.Wrapper getWrapper​(Class<? extends org.infinispan.commons.dataconversion.Wrapper> wrapperClass, byte wrapperId)  
      boolean isConversionSupported​(org.infinispan.commons.dataconversion.MediaType from, org.infinispan.commons.dataconversion.MediaType to)  
      boolean isRegistered​(Class<? extends org.infinispan.commons.dataconversion.Encoder> encoderClass)  
      void registerEncoder​(org.infinispan.commons.dataconversion.Encoder encoder)  
      void registerTranscoder​(org.infinispan.commons.dataconversion.Transcoder transcoder)  
      void registerWrapper​(org.infinispan.commons.dataconversion.Wrapper wrapper)  
    • Method Detail

      • getEncoder

        org.infinispan.commons.dataconversion.Encoder getEncoder​(Class<? extends org.infinispan.commons.dataconversion.Encoder> encoderClass,
                                                                 short encoderId)
      • isRegistered

        boolean isRegistered​(Class<? extends org.infinispan.commons.dataconversion.Encoder> encoderClass)
      • getWrapper

        org.infinispan.commons.dataconversion.Wrapper getWrapper​(Class<? extends org.infinispan.commons.dataconversion.Wrapper> wrapperClass,
                                                                 byte wrapperId)
      • registerEncoder

        void registerEncoder​(org.infinispan.commons.dataconversion.Encoder encoder)
        Parameters:
        encoder - to be registered.
      • registerWrapper

        void registerWrapper​(org.infinispan.commons.dataconversion.Wrapper wrapper)
      • registerTranscoder

        void registerTranscoder​(org.infinispan.commons.dataconversion.Transcoder transcoder)
      • getTranscoder

        org.infinispan.commons.dataconversion.Transcoder getTranscoder​(org.infinispan.commons.dataconversion.MediaType type1,
                                                                       org.infinispan.commons.dataconversion.MediaType type2)
        Obtain an instance of Transcoder from the registry.
        Parameters:
        type1 - MediaType supported by the transcoder.
        type2 - MediaType supported by the transcoder.
        Returns:
        An instance of Transcoder capable of doing conversions between the supplied MediaTypes.
      • isConversionSupported

        boolean isConversionSupported​(org.infinispan.commons.dataconversion.MediaType from,
                                      org.infinispan.commons.dataconversion.MediaType to)