camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-10031) camel-spring-boot - Add endpoint options as type-safe configuration properties
Date Tue, 26 Jul 2016 12:23:20 GMT


Claus Ibsen commented on CAMEL-10031:

Another though James and I had was to have an APT plugin code generate the spring boot schema
and source code on-the-fly based on users configuring their application.yml / .properties

This is a bit of a hack in the sense then the IDE would need to sync when the end user adds
a new endpoint id in that file.

So if the end user types
{code}<cursor is here>

Then we generate the spring files based on using "foo" as a known prefix. Then the existing
Spring Boot tooling and Spring Boot itself would be able to use that.

And the user can use the tooling to have code-assistance to setup the options which has documentation
and default values out of the box.

The generated source code can be in the target directory so its not part of the source code
the user sees or has in his/her code project.

> 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
> 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