Package org.bonitasoft.engine.properties
Annotation 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:
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
- Default:
- ""
-
name
- Default:
- ""
-
deprecated
String[] deprecated- Default:
- {}
-