Package com.impossibl.postgres.system
Annotation Type Setting.Info
-
@Target(FIELD) @Retention(CLASS) public static @interface Setting.Info
Setting definition annotation. The annotation must be used on a "declared" static final field named inside a setting factory (i.e. a classed annotated withSetting.Factory
). A declared setting field is one initialized withSetting.declare()
\@Setting.Factory class MySettings { \@Setting.Group.Info(id="a", desc="A group") static final A_GROUP = Setting.Group.declare() \@Setting.Info(name="a.setting", group="a", desc="A Setting", def="10") static final A_SETTING = Setting.declare() }
-
-
Field Summary
Fields Modifier and Type Fields Description static String
NO_DEFAULT
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]
alternateNames
Alternate names for the setting.String
def
Static default value of the setting.String
defDynamic
Code that will be directly copied and used as a dynamic default value.String
defStatic
Code that will be directly copied and used to provide an initial static default value.int
max
Maximum allowed value for setting.int
min
Minimum allowed value for setting.
-
-
-
Field Detail
-
NO_DEFAULT
static final String NO_DEFAULT
-
-
Element Detail
-
name
String name
Primary name of the setting. Must be in dot-dash format (e.g.this.is.a.setting-name
) to ensure it can be translated and used via command line easily.
-
-
-
group
String group
Id of the group to which the setting belongs.
-
-
-
desc
String desc
Description of the setting. The text can include simple markup allowable in Markdown and JavaDoc.
-
-
-
def
String def
Static default value of the setting.- Default:
- "$$$NULL$$$"
-
-
-
defDynamic
String defDynamic
Code that will be directly copied and used as a dynamic default value. When this value is set,def()
is treated as a description of the dynamic value anddefStatic()
is ignored.- See Also:
Setting
- Default:
- "$$$NULL$$$"
-
-
-
defStatic
String defStatic
Code that will be directly copied and used to provide an initial static default value. This should be used to initialize a default value with a non-const variable. When this value is set,def()
is treated as a description of the dynamic value. IfdefDynamic()
is provided this value is ignored.- See Also:
Setting
- Default:
- "$$$NULL$$$"
-
-
-
min
int min
Minimum allowed value for setting. This value is ignored if the setting's type is not an Integer.- See Also:
Setting
- Default:
- -2147483648
-
-
-
max
int max
Maximum allowed value for setting. This value is ignored if the setting's type is not an Integer.- See Also:
Setting
- Default:
- 2147483647
-
-