Skip to content

Commit

Permalink
eclipse#240 - add programmatic lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Jiang <[email protected]>
  • Loading branch information
Emily-Jiang committed Jun 3, 2020
1 parent 8591e8a commit 9736f68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Binary file added api/.DS_Store
Binary file not shown.
10 changes: 6 additions & 4 deletions api/src/main/java/org/eclipse/microprofile/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,14 @@ default <T> Optional<List<T>> getOptionalValues(String propertyName, Class<T> 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 <T>
* 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> T getConfigProperties(Class<T> configProperties);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

/**
* <p>
* 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.
* <pre>
* &#064;ConfigProperties(prefix="server")
* public class MyServer {
Expand Down Expand Up @@ -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 "";
Expand Down

0 comments on commit 9736f68

Please sign in to comment.