Skip to content

Commit

Permalink
#325 update spec to be insync with javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Jiang <emijiang@uk.ibm.com>
  • Loading branch information
Emily-Jiang committed Apr 10, 2018
1 parent dd4e5c8 commit 07fb632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
Expand Up @@ -89,7 +89,7 @@
* <ul>
* <li>the target type {@code T} has a {@code public static T of(String)} method, or</li>
* <li>the target type {@code T} has a {@code public static T valueOf(String)} method, or</li>
* <li>The target type {@code T} has a public Constructor with a String parameter, or</li>
* <li>the target type {@code T} has a public Constructor with a String parameter, or</li>
* <li>the target type {@code T} has a {@code public static T parse(CharSequence)} method</li>
* </ul>
Expand Down
16 changes: 4 additions & 12 deletions spec/src/main/asciidoc/converters.asciidoc
Expand Up @@ -36,16 +36,7 @@ The following `Converter` s are provided by Microprofile-Config by default:
* `long` and `Long`
* `float` and `Float` , a dot '.' is used to separate the fractional digits
* `double` and `Double` , a dot '.' is used to separate the fractional digits
* `Duration`
* `LocalTime`
* `LocalDate`
* `LocalDateTime`
* `OffsetDateTime`
* `OffsetTime`
* `Instant`
* `URL`
* `Class` based on the result of `Class.forName`
* `URI`

All built-in `Converter` have the `@Priority` of `1`.

Expand Down Expand Up @@ -96,7 +87,8 @@ e.g. With this config `myPets=dog,cat,dog\\,cat`, the values as an array will be

If no built-in nor custom `Converter` for a requested Type `T`, an implicit Converter is automatically provided if the following conditions are met:

* The target type `T` has a public Constructor with a String parameter, or
* the target type `T` has a `public static T valueOf(String)` method, or
* the target type `T` has a `public static T parse(CharSequence)` method
* The target type {@code T} has a {@code public static T of(String)} method, or
* The target type {@code T} has a {@code public static T valueOf(String)} method, or
* The target type {@code T} has a public Constructor with a String parameter, or
* The target type {@code T} has a {@code public static T parse(CharSequence)} method

0 comments on commit 07fb632

Please sign in to comment.