Annotation Interface Value


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Value
This annotation marks configuration schema field as a configuration tree leaf. Every field annotated with this annotation will produce a DynamicProperty field in generated configuration class.

Type must be one of the following (or array of one of the following):

  • boolean
  • int
  • long
  • double
  • String
  • UUID
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates that the current configuration value has a default value.
  • Element Details

    • hasDefault

      boolean hasDefault
      Indicates that the current configuration value has a default value. Value itself is derived from the instantiated object of a corresponding schema type. This means that the default is not necessarily a constant value.
      Returns:
      hasDefault flag value.
      Default:
      false