- Enclosing class:
Configuration
@Target(PARAMETER)
@Retention(CLASS)
@Documented
@Qualifier
public static @interface Configuration.Value
A qualifier for injection of a single value from the configuration tree.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueConfiguration key (from the config root) to find the value.Default configuration key is
<class_name>.<field_name>
for field injection (if supported), and<className>.<constructor_param_name>
for constructor injection. The<class_name>
is the fully qualified class name of the type that uses this annotation.Note that parameter names are not retained at runtime, so the parameter name when not using build time processing would be generated by the JVM.
To define a default value, use one of the
Default
annotations.- Returns:
- configuration key
- Default:
""
-