Annotation Type ConfSerialisers


@Retention(RUNTIME) @Target(TYPE) public @interface ConfSerialisers
Attaches a value serialiser to a configuration interface
Author:
A248
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends ValueSerialiser<?>>[]
    Specifies additional ValueSerialisers to use for this configuration interface.
  • Element Details

    • value

      Class<? extends ValueSerialiser<?>>[] value
      Specifies additional ValueSerialisers to use for this configuration interface. Each ValueSerialiser must have a either a public static getInstance() method returning an instance or a public constructor with no arguments, in order to be created.

      These serialisers are in addition to the global ConfigurationOptions.getSerialisers(). When determining a serialiser for a configuration entry, this annotation is prioritised over the global options.

      Furthermore, note that configuration subsections do not "inherit" the value of this annotation in their own serialisers. Subsections should likewise use this annotation if it is needed.
      Returns:
      the value serialisers to use