jakartaee / config

Jakartaconfig project
Apache License 2.0
21 stars 16 forks source link

load(Class) method expects annotated interface #212

Closed jansupol closed 2 weeks ago

jansupol commented 7 months ago

During the meeting, it was discussed the Loader.load(Class<?>) expects an interface class that is annotated by @Configuration interface.

This annotation does not seem to be required any longer when path method replaces the @Configuration.path.

radcortez commented 2 weeks ago

The @ConfigMapping is mandatory when calling load(Class<?>). For other cases that may require retrieving configuration without an interface (for instance, Jakarta specifications), there will be a programmatic API for that use case.