[
https://issues.apache.org/jira/browse/CAMEL-10031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393792#comment-15393792
]
Nicola Ferraro commented on CAMEL-10031:
----------------------------------------
Nice!
The last configuration example you provided can be currently obtained with the
following code:
{code:java}
@ConfigurationProperties(prefix = "camel.component")
public class FtpEndpointsConfiguration {
private Map<String, FtpSingleEndpointConfiguration> ftp = new HashMap<>();
public Map<String, FtpSingleEndpointConfiguration> getFtp() {
return this.ftp;
}
public static class FtpSingleEndpointConfiguration {
// getters, setters and config properties
}
}
{code}
The configuration is filled in correctly when you lookup it. The problem is
that there is no auto-completion (and it seems like another hack).
Agree that we need something from the Spring side.
> camel-spring-boot - Add endpoint options as type-safe configuration properties
> ------------------------------------------------------------------------------
>
> Key: CAMEL-10031
> URL: https://issues.apache.org/jira/browse/CAMEL-10031
> Project: Camel
> Issue Type: New Feature
> Components: camel-spring-boot
> Reporter: Claus Ibsen
>
> See CAMEL-9419.
> We can now configure this for all the components. But for endpoints its a bit
> more as you can have many endpoints with different configuration.
> So either you assign an id to the endpoint you configure, and then need to
> refer to the endpoint by id, in the camel routes. Or we figure out something
> else.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)