gestalt-config / gestalt

A Java configuration library
https://gestalt-config.github.io/gestalt/
Apache License 2.0
84 stars 2 forks source link

Use constructor when creating beans in ObjectDecoder #208

Open credmond-git opened 3 months ago

credmond-git commented 3 months 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.