Interface CodecRegistry

All Superinterfaces:
Iterable<Codec<?>>
All Known Implementing Classes:
DefaultCodecs

public interface CodecRegistry extends Iterable<Codec<?>>
Registry allowing to query and register Codecs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFirst(Codec<?> codec)
    Register codec before all other codecs.
    void
    addLast(Codec<?> codec)
    Register codec after all other codecs.

    Methods inherited from interface Iterable

    forEach, iterator, spliterator
  • Method Details

    • addFirst

      void addFirst(Codec<?> codec)
      Register codec before all other codecs.
      Parameters:
      codec - the codec to register
      Throws:
      IllegalArgumentException - if codec is null
    • addLast

      void addLast(Codec<?> codec)
      Register codec after all other codecs.
      Parameters:
      codec - the codec to register
      Throws:
      IllegalArgumentException - if codec is null