Annotation Interface BonitaProperty


@Target({FIELD,METHOD,PARAMETER}) @Retention(RUNTIME) public @interface BonitaProperty
Annotation to be used on fields to inject a property value from the environment. It works very much like the @Value annotation from Spring. Can be provided with a list of deprecated property names. If so, when used, the annotation processor will first look for the deprecated properties and if found, will log a warning. Eg:

 @BonitaProperty(name = "my.property", deprecated = { "old.my.property", "older.my.property" })
 private String myProperty;
 
In simple cases where no deprecated properties are defined, the name attribute can be omitted (and passed a default unnamed 'value' attribute):

 @BonitaProperty("my.property")
 private String myProperty;
 
See Also:
  • Element Details

    • value

      @AliasFor("name") String value
      Default:
      ""
    • name

      @AliasFor("value") String name
      Default:
      ""
    • deprecated

      String[] deprecated
      Default:
      {}