Annotation Interface Property
Annotation added to setter methods that identify auto-configurable properties. The methods must follow JavaBean
conventions. For a property named
foo, then we expected to see the methods:
public void setFoo(T value) { ... }
public T getFoo() { ... }
The following types are supported:
- Any Java primitive type (int, double, boolean, etc.)
String- Any enumeration - the properties are automatically converted to strings
Variation- the instance is created usingOperatorFactory.getInstance().getVariation(value)Mutation- same asVariationexcept only supports one parent
boolean, then the getter can alternatively be named isFoo.-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe name of this property. If unset, the name is derived from the method name. To help disambiguate property names, especially for variation operators, consider adding thePrefixannotation.- Returns:
- the name of this property
- Default:
- ""
-
alias
String[] aliasOne or more alternate names used by this property.- Returns:
- the alternate names for this property
- Default:
- {}
-
readOnly
boolean readOnlyIndicates this property is read-only. Whentrue, this annotation may only exist on the getter method.- Returns:
trueif this property is read-only;falseotherwise
- Default:
- false
-