jamesnetherton commented on issue #1303: URL: https://github.com/apache/camel-quarkus/issues/1303#issuecomment-650221507
TL;DR - `FastCamelContext` needs to be registered for reflection for the `camel.context.rest-configuration.*` config style to work in native mode. It comes down to how `PropertyBindingSupport` resolves the target object to bind the property value. When using the short cut, the property name seen by `PropertyBindingSupport.setProperty` is stripped of the `camel.rest` prefix. E.g like `apiContextPath`. With the longer style, the property name is like `restConfiguration.apiContextPath`. This results in iterating over the '.' delimited parts in order to resolve each property. `RestConfiguration` belongs to `FastCamelContext`, and hence it gets looked up reflectively (there is no property configurer for `RestConfiguration`). Currently this part fails, so a new `RestConfiguration` is instantiated for each rest configuration property that the user has chosen to set, effectively erasing any `rest-configuration` properties that were previously set. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org