You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/07/16 11:04:00 UTC

[jira] [Commented] (CAMEL-12655) Endpoints: Helper method with setters/getters to easily construct endpoint URIs

    [ https://issues.apache.org/jira/browse/CAMEL-12655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545069#comment-16545069 ] 

Claus Ibsen commented on CAMEL-12655:
-------------------------------------

There is already some tickets about building fluent builders for Java and XML DSLs. Check those JIRAs.

 

> Endpoints: Helper method with setters/getters to easily construct endpoint URIs
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-12655
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12655
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.21.1
>            Reporter: Prakhar
>            Priority: Minor
>              Labels: Endpoint, component, uri
>
> Right now all the camel endpoints/URI's are string based. As a developer, I need to construct them manually and have to be aware of the changes brought in with each new release. I would be more confident in working with URIs if I could get some basic type checking as well as some helper methods to quickly construct the URIs. For example a set of setter methods for the properties and a single getter method for the endpoint.
> I have been constructing my own utility classes, to achieve this. for ex. have a look at [apache-camel-kafka|https://github.com/PrakharSrivastav/apache-camel-kafka/blob/master/src/main/java/utils/kafka/KafkaEndpointBuilder.java] for working with Kafka endpoints. And the way I use this builder is [usage-of-endpointbuilder |https://github.com/PrakharSrivastav/apache-camel-kafka/blob/master/src/main/java/routes/bank/BankProcessPayment.java] It would be really helpful to have this feature shipped with the individual camel-components. This is a crude example but highlights the use case for the feature.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)