Prakhar created CAMEL-12655:
-------------------------------

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


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)

Reply via email to