Annotation Interface Dynamic


The dynamic codec field type will create a map codec from a static method The method is defined through the fields defined in the annotation. The method must return a map codec with a matching type. As arguments, it must accept a String which defines the field name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Method name of the factory method.
    Class where to find the codec factory.
  • Element Details

    • value

      Class<?> value
      Class where to find the codec factory. Can be left empty to use the class of the parameter type.
      Default:
      void.class
    • factory

      String factory
      Method name of the factory method. Can be left empty to use the default value: fieldOf
      Default:
      ""