From 9b091d0b9c26d9c3f86d01b07fc1ae14b27d059f Mon Sep 17 00:00:00 2001 From: ondrejm Date: Wed, 22 Feb 2017 01:07:55 +0100 Subject: [PATCH] Improved description of how a default config key is generated. Signed-off-by: Ondrej Mihalyi --- .../eclipse/microprofile/config/inject/ConfigProperty.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperty.java b/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperty.java index 82cb4346..8c5b8a9e 100644 --- a/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperty.java +++ b/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperty.java @@ -63,8 +63,10 @@ public @interface ConfigProperty { /** * The kay of the config property used to look up the configuration value. - * If it is not specified, it will be derived automatically as{@code .}, - * where {@code injection_point_name} is either a field name or a property name in case of field/property injection. Otherwise the value has to be provided. + * If it is not specified, it will be derived automatically as {@code .}, + * where {@code injection_point_name} is either a field name or a property name in case of field/property injection, + * {@code class_name} is the simple name of the class being injected to. + * If one of the {@code class_name} or {@code injection_point_name} cannot be determined, the value has to be provided. * * @return Name (key) of the config property to inject */