@Documented @Qualifier @Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER,TYPE}) public @interface Setting
Qualifier
indicating that
the annotated element should be provided via a Settings
-originated value
acquisition operation, such as Settings.get(String, Set,
Converter, BiFunction)
.Settings.get(String, Set, Converter, BiFunction)
Modifier and Type | Fields and Description |
---|---|
static String |
UNSET
A value indicating
null for use in annotation elements,
since annotation elements cannot return or be set to null . |
Modifier and Type | Required Element and Description |
---|---|
String |
name
The setting name.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
defaultValue
The default value for the setting.
|
boolean |
required
Whether a value for the setting must be present; it is illegal to
set this to
true and set the defaultValue element to a value other than UNSET |
public static final String UNSET
null
for use in annotation elements,
since annotation elements cannot return or be set to null
.defaultValue()
public abstract String defaultValue
null
but possibly UNSET
public abstract boolean required
true
and set the defaultValue
element to a value other than UNSET
Copyright © 2019–2020, microBean™. All rights reserved.