state-machine-systems / envy

Super simple configuration for Java.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support java.time classes

johnwright opened this issue · comments

The types in java.time already have static parse methods:

  • Instant
  • OffsetDateTime
  • ZonedDateTime
  • LocalDate
  • LocalTime
  • LocalDateTime
  • OffsetTime
  • MonthDay

To reduce boilerplate, the static method lookup approach used in OptionalWrapper.Invoker could be refactored to support either class names (for runtime dependencies) or class objects. This could be an opportunity to generalise ReflectionValueParser, too.