Annotation Interface DefaultValue


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface DefaultValue
Specifies default value for a configuration field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Provider class for complex default values.
    Default value as string.
  • Element Details

    • value

      String value
      Default value as string. Will be converted to the field type.
      Returns:
      the default value
      Default:
      ""
    • provider

      Class<? extends DefaultValueProvider<?>> provider
      Provider class for complex default values. Must implement DefaultValueProvider interface.
      Returns:
      the provider class
      Default:
      dev.ua.theroer.magicutils.config.annotations.NoDefaultValueProvider.class