Package com.impossibl.postgres.system
Annotation Type Setting.Info
-
@Target(FIELD) @Retention(CLASS) public static @interface Setting.InfoSetting 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 java.lang.StringNO_DEFAULT
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]alternateNamesAlternate names for the setting.java.lang.StringdefStatic default value of the setting.java.lang.StringdefDynamicCode that will be directly copied and used as a dynamic default value.java.lang.StringdefStaticCode that will be directly copied and used to provide an initial static default value.intmaxMaximum allowed value for setting.intminMinimum allowed value for setting.
-
-
-
-
defDynamic
java.lang.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
java.lang.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
-
-
-
alternateNames
java.lang.String[] alternateNames
Alternate names for the setting.- See Also:
Setting
- Default:
- {}
-
-