Package org.n52.faroe.annotation
Annotation Interface Setting
Annotation that should be applied to a method that takes a single Setting as a parameter. The parameter of this
method should be of the same type as the type of the associated
org.n52.faroe.SettingDefinition.
It is needed to apply the Configurable annotation to a class with a method annotated with this annotations
for the SettingsManager to recognize it.
Example usage:
@Setting(MiscellaneousSettingDefinitions.TOKEN_SEPERATOR_KEY)
public void setTokenSeperator(String separator) {
this.separator = separator;
}
- Since:
- 1.0.0
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe key of the setting.- Returns:
- the key
-
required
boolean requiredIf this setting is required.- Returns:
- if it is required
- Default:
true
-