Package space.arim.dazzleconf.annote
package space.arim.dazzleconf.annote
Defines annotations which control the behaviour of configuration entries.
The most common annotations used will be entry attributes:
Next are validators.
There are only 2 annotations applying to a configuration interface rather than individual entries:
The most common annotations used will be entry attributes:
ConfKey
,
ConfComments
, and annotations in ConfDefault
all describe a property of a configuration entry. SubSection
defines a config entry
as a nested configuration section. Next are validators.
NumericRange
and
IntegerRange
specify the range of a numeric type, while
CollectionSize
controls the size of some collection. For finer grained
validation, ConfValidator
may be specified. There are only 2 annotations applying to a configuration interface rather than individual entries:
ConfHeader
and ConfSerialisers
. The former
adds a comment header, and the latter attaches additional ValueSerialiser
implementations used specifically for the target configuration interface.-
ClassDescriptionContainer for annotations used to specify the default value on a config entry.
-
Annotation TypeDescriptionApplied to lists, sets, collections, and maps in order to limit their sizeInserts one or more comments ahead of the config entry this annotation is placed beforeSpecifies the default value as a booleanSpecifies the default value as a boolean array.Specifies the default value as a double.Specifies the default value as a double array.Specifies the default value as an integer.Specifies the default value as an integer array.Specifies the default value as a long.Specifies the default value as a long array.Specifies the default value as a map.Specifies the qualified name of the static method returning the default value.Specifies the default value as string.Specifies the default value as a string array.Allows specifying the comment header on a top level configuration or a comment on a sub section.Specifies the key whose value will be used for this method.Attaches a value serialiser to a configuration interfaceAttaches a value validator to a config entryControls the range of an numeric type.Controls the range of any numeric type.Specifies either that the config entry is a configuration section, or that a generic parameter of a collection (a collection element or map value) is a configuration section.