Description
We've got a great pull request via github https://github.com/apache/johnzon/pull/15
While the patch is fine I want to still stretch out and implement a feature we similarly added to the ConfigJSR:
If no explicit Converter and no built-in Converter could be found for a certain type,
the {@code Config} provides an <em>Implicit Converter</em>, if
- The target type {@code T} has a Constructor with a String parameter, or
- The target type {@code T} has a Constructor with a CharSequence parameter, or
- the target type {@code T} has a {@code static T valueOf(String)} method, or
- the target type {@code T} has a {@code static T valueOf(CharSequence)} method, or
- the target type {@code T} has a {@code static T parse(String)} method, or
- the target type {@code T} has a {@code static T parse(CharSequence)} method
Since all the java8 time types DO implement one of those signatures we don't need anything more.