Annotation Type LoadingOrder
-
@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface LoadingOrder
This annotation is used to specify the order in which theValueExtractorAnnotationannotationsCommandLineValue,PropertyValue,EnvironmentVariableValue,SystemPropertyValue,ImportedValueandDefaultValueare processed. It can specify the order for a certain field if placed on the field, or a global order if placed on the config class. The annotations are processed top-down until a string value is found, i.e. the order is from the most important to the least important. TheLoadingOrdermay only contain the aforementionedValueExtractorAnnotationclasses.
Usage:@LoadingOrder(value = {PropertyValue.class, CommandLineValue.class, DefaultValue.class})
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends Annotation>[]value
-
-
-
Element Detail
-
value
Class<? extends Annotation>[] value
- Default:
- {com.tngtech.configbuilder.annotation.valueextractor.CommandLineValue.class, com.tngtech.configbuilder.annotation.valueextractor.PropertyValue.class, com.tngtech.configbuilder.annotation.valueextractor.DefaultValue.class}
-
-