-
Notifications
You must be signed in to change notification settings - Fork 355
Support and document user provided hints #412
Comments
We should at least analyse it in 0.9.0, see potentially related spring-projects/spring-framework#21546 issue. |
This issue is really interesting and is not specific to Kotlin as demonstrated in this modified So what solution to we have:
@aclement Any thoughts on allowing users to provide hints in their projects? Maybe via build-time transformation we generate the service loader entry in order to have and make |
Hints are actually already discoverable in two ways. They either are declared 'over there' separate to configuration on something implementing NativeImageConfiguration and have a trigger (and a service loader entry), or they can be specified directly on configuration and that configuration automatically acts as the trigger - we just never use it like that ourselves. If they are directly declared on configuration they don't need a service loader entry. We don't do this because the configurations are in spring framework/boot, but if they were in 'our code' we could do it, so:
should already work. But yes, we could also generate service loader entries. |
Ok so I think this issue should:
|
@aclement I confirm it works as you described, so I am ok to use it for now and document it. I will take this opportunity to document those annotations. Are you ok with the renaming proposed in my previous comment? |
Happy to take |
I am fine to keep |
I haven't been able to get JSON deserialization in
WebClient
working with Kotlin without manual decoding.Jackson:
https://github.com/jamesward/springboot-kotlin-reactive-demo/tree/graalvm-kofu-jackson
KTX Serialization:
https://github.com/jamesward/springboot-kotlin-reactive-demo/tree/graalvm-kofu-ktx-serialization
The text was updated successfully, but these errors were encountered: