Package space.arim.dazzleconf.annote
Annotation Type ConfSerialisers
Attaches a value serialiser to a configuration interface
- Author:
- A248
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends ValueSerialiser<?>>[]Specifies additionalValueSerialisers to use for this configuration interface.
-
Element Details
-
value
Class<? extends ValueSerialiser<?>>[] valueSpecifies additionalValueSerialisers to use for this configuration interface. EachValueSerialisermust have a either a public staticgetInstance()method returning an instance or a public constructor with no arguments, in order to be created.
These serialisers are in addition to the globalConfigurationOptions.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
-