Annotation Interface PropertyInject


@Retention(RUNTIME) @Documented @Target({FIELD,METHOD,CONSTRUCTOR,PARAMETER}) public @interface PropertyInject
Used to indicate an injection point of a property placeholder into a POJO.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the property
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Default value to use if the property does not exist or has no value
    Used for splitting the property value into an array/list of values.
  • Element Details

    • value

      String value
      Name of the property
    • defaultValue

      String defaultValue
      Default value to use if the property does not exist or has no value
      Default:
      ""
    • separator

      String separator
      Used for splitting the property value into an array/list of values. For example to use comma to separate the values.
      Default:
      ""