Annotation Interface ElementDefaultAttribute


@Target(FIELD) @Retention(RUNTIME) public @interface ElementDefaultAttribute
Annotates a static final non-null field. When loading an Element, the ElementLoader scans for all fields bearing this annotation and will assign the value of this annotation to the default value to populate the Attributes of the Element at load time. The value of the static field is to be the name of the attribute. This makes it such that the static constant may be used to retrieve the value from Attributes and the default value will
  • Element Details

    • value

      String value
      The default value of the configuration value.
      Returns:
      the default value
      Default:
      ""
    • supplier

      A supplier class that can be used to generate the default value dynamically.
      Returns:
      the supplier class
      Default:
      dev.getelements.elements.sdk.annotation.ElementDefaultAttribute.DefaultValueSupplier.class
    • description

      String description
      A description of the attribute.
      Returns:
      the description
      Default:
      ""
    • sensitive

      boolean sensitive
      Whether the attribute is sensitive (e.g., passwords, API keys).
      Returns:
      true if sensitive, false otherwise
      Default:
      false