davsclaus edited a comment on pull request #7190:
URL: https://github.com/apache/camel/pull/7190#issuecomment-1065837479


   Really good start, its not so far again.
   
   I wonder instead of having @Metadata(headers = array here) on the endpoint 
class which then leads to duplicating effort as you need to add each here here, 
and as well in the headers class (xxxConstants).
   
   What about instead you add an attribute on @UriEndpoint that refers to the 
headers class
   
   ```
   @UriEndpoint(....
                            headersClass = KafkaConstants.class)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to