Package io.microsphere.annotation
Annotation Type ConfigurationProperty
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface ConfigurationProperty
The metadata annotation used to declare on the Java field whose modifiers usually are static and final for the configuration property.The module that named "microsphere-annotation-processor" generates the metadata resource in the classpath.
- Since:
- 1.0.0
- Author:
- Mercy
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
APPLICATION_SOURCE
Applicationstatic java.lang.String
ENVIRONMENT_VARIABLES_SOURCE
OS Environment Variablesstatic java.lang.String
SYSTEM_PROPERTIES_SOURCE
JDK System Properties
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
defaultValue
The default value of the configuration property.java.lang.String
description
The description of the configuration property.java.lang.String
name
The name of the configuration property.boolean
required
Whether the configuration property is required.java.lang.String[]
source
The source of the configuration property.java.lang.Class<?>
type
The type of the configuration property.
-