From 9736f68c9459b532fc2374575c6ba593a018a8a5 Mon Sep 17 00:00:00 2001 From: Emily Jiang Date: Wed, 3 Jun 2020 23:35:23 +0100 Subject: [PATCH] #240 - add programmatic lookup Signed-off-by: Emily Jiang --- api/.DS_Store | Bin 0 -> 6148 bytes .../org/eclipse/microprofile/config/Config.java | 10 ++++++---- .../config/inject/ConfigProperties.java | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 api/.DS_Store diff --git a/api/.DS_Store b/api/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ee771938787a1bb39cadddab0eb4f7463f2ead2b GIT binary patch literal 6148 zcmeHKI|>3Z5S>vG!N$@uSMUZw^aOhW1;s`bM6I{-TprCgpGH?ZZR8D1UNV`NkXP*N zh=|TFo0-T&L`HB!x!KS)+c)o6FCz+si0p zwti-h{ zq5pp-aYY5Fz+Wk#gGIBL<4IXtJCCzkTi`3W<=o+Bm^%f7mt&xpV=Sy3PdzE}ip{ZK V6Wc(iBkpt{e+En!8Ws4p0uNe26{i3I literal 0 HcmV?d00001 diff --git a/api/src/main/java/org/eclipse/microprofile/config/Config.java b/api/src/main/java/org/eclipse/microprofile/config/Config.java index f8477cfe..c3b8cf3e 100644 --- a/api/src/main/java/org/eclipse/microprofile/config/Config.java +++ b/api/src/main/java/org/eclipse/microprofile/config/Config.java @@ -182,12 +182,14 @@ default Optional> getOptionalValues(String propertyName, Class pr } /** - * Return the fully-populated {@linkplain ConfigProperties configuration properties} instance for the specified type. + * Return a {@linkplain org.eclipse.microprofile.config.inject.ConfigProperties configuration properties} + * instance for the specified type. * @param - * The {@linkplain ConfigProperties configuration properties} Class Type + * The {@linkplain org.eclipse.microprofile.config.inject.ConfigProperties configuration properties} Class Type * @param configProperties - * The class of the {@linkplain ConfigProperties configuration properties} - * @return The instance of the {@linkplain ConfigProperties configuration properties} for the specified type + * The class of the {@linkplain org.eclipse.microprofile.config.inject.ConfigProperties configuration properties} + * @return An instance of the {@linkplain org.eclipse.microprofile.config.inject.ConfigProperties configuration properties} + * for the specified type */ T getConfigProperties(Class configProperties); diff --git a/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperties.java b/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperties.java index 9a166e37..2374cc43 100644 --- a/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperties.java +++ b/api/src/main/java/org/eclipse/microprofile/config/inject/ConfigProperties.java @@ -33,7 +33,7 @@ /** *

- * Retrieve a number of related configuration properties to a property class. + * Retrieve a number of related configuration properties with the specified prefix into a property class. *

  * @ConfigProperties(prefix="server")
  * public class MyServer {
@@ -63,7 +63,7 @@
 public @interface ConfigProperties {
 
     /**
-     * Specify the configuration property prefix
+     * The prefix of the configuration properties
      * @return the configuration property prefix
      */
     String prefix() default "";