[
https://issues.apache.org/jira/browse/CAMEL-13807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16984290#comment-16984290
]
Claus Ibsen commented on CAMEL-13807:
-------------------------------------
Omar, yeah lets give this some time to come up with good ideas how the end
users uses this and from where.
Maybe at first work on the maven plugin that generates the source code. And
yeah then maybe have a CompontBuilder as the main entry for now. As this allows
to keep it in a separate JAR. As we need to make it optional, like the endpoint
dsl is.
For example in a new
camel-componentdsl
And then after that we figure out the apis to use it from Camel. For example it
would also be nice to use it for spring boot bean
{code}
@Bean
public KafkaComponent myKafka() {
return ComponentBuilder.kafka().....buidl(); // or what api we have
{code}
> Component DSL - To configure components like endpoint DSL
> ---------------------------------------------------------
>
> Key: CAMEL-13807
> URL: https://issues.apache.org/jira/browse/CAMEL-13807
> Project: Camel
> Issue Type: New Feature
> Reporter: Claus Ibsen
> Assignee: Omar Al-Safi
> Priority: Major
> Fix For: 3.1.0
>
>
> Some components can also be configured, and today you can configure them via
> - spring boot auto configuration
> - camel main configuration
> - java code manually via setter/getter
> - xml syntax via <bean>
> We should look at generating a Java component DSL with fluent builder like
> camel-endpointdsl. Then its similar and you can configure them
> component().jms().concurrentConsumers(5).keepAlive(6000)
> And then later if/when we do a XML version of endpoint DSL we can do one for
> components too.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)