gestalt-config / gestalt

A Java configuration library
Apache License 2.0
77 stars 2 forks source link

Use constructor when creating beans in ObjectDecoder #208

Open credmond-git opened 1 month ago

credmond-git commented 1 month ago

To perform this conversion, ObjectDecoderneeds a way to obtain the Java constructor’s parameter names. They need to be provided in one of the following ways:

  1. Annotate constructor with java.beans.ConstructorProperties.
  2. Annotate parameters with jakarta.inject.Named.
  3. Set the Java compiler flag -parameters.