Annotation Type ConfValidator


@Retention(RUNTIME) @Target(METHOD) @Deprecated public @interface ConfValidator
Deprecated.
Value validators will be removed in DazzleConf 2.0 since they do not fit the new API model. Meanwhile, you might save time by switching usage of this class to modifying your value serialisers and checking output values appropriately. If need be, make new types that uphold your requirements.
Attaches a value validator to a config entry
Author:
A248
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Deprecated.
    Specifies the ValueValidator to use for this config entry.
  • Element Details

    • value

      Class<? extends ValueValidator> value
      Deprecated.
      Specifies the ValueValidator to use for this config entry. The ValueValidator must have a either a public static getInstance() method returning an instance or a public constructor, each with no arguments, in order to be created.
      Returns:
      the value validator to use