Package space.arim.dazzleconf.annote
Annotation Type ConfSerialisers
Attaches a value serialiser to a configuration interface
- Author:
- A248
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends ValueSerialiser<?>>[]
Specifies additionalValueSerialiser
s to use for this configuration interface.
-
Element Details
-
value
Class<? extends ValueSerialiser<?>>[] valueSpecifies additionalValueSerialiser
s to use for this configuration interface. EachValueSerialiser
must 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
-