Interface JsonbComponent

All Known Subinterfaces:
Jsonb.GeneratedComponent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JsonbComponent
User defined components to register custom JsonAdapters with Jsonb.Builder.

These are service loaded when Jsonb starts. They can be specified in META-INF/services/io.avaje.jsonb.JsonbComponent or when using java module system via a provides clause in module-info.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Register JsonAdapters with the Builder.
  • Method Details

    • register

      void register(Jsonb.Builder builder)
      Register JsonAdapters with the Builder.