camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Burgazzoli (JIRA)" <>
Subject [jira] [Commented] (CAMEL-10031) camel-spring-boot - Add endpoint options as type-safe configuration properties
Date Mon, 08 May 2017 16:28:04 GMT


Luca Burgazzoli commented on CAMEL-10031:

Would it make sense to have an hook on the component to inject an "endpoint options processor"
? Because not all the endpoints have a getter/setter for the options (most of the new component
have a configuration class instead) the auto configuration task may not be trivial.

As far as I remember there was  also a discussion on how to assign an id to an endpoint and
if we can make that we can do something like:


camel.component.ftp.endpoints[test].password = secret

The hook (which is added by spring-boot auto configuration) will then inspect the components
option for an id field and adds the options from spring-boot related to such id.
For xml we can leverage the id on the element.
The hook may be triggered between:
{code:java} Endpoint createEndpoint(String uri) {code}

{code:java} Endpoint createEndpoint(String uri, String remaining, Map<String,Object>
parameters) {code}

> camel-spring-boot - Add endpoint options as type-safe configuration properties
> ------------------------------------------------------------------------------
>                 Key: CAMEL-10031
>                 URL:
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Assignee: Nicola Ferraro
> 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

View raw message