You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/22 17:01:08 UTC

[GitHub] [camel] essobedo opened a new pull request #7247: CAMEL-16628: Allow to define headers in an enum

essobedo opened a new pull request #7247:
URL: https://github.com/apache/camel/pull/7247


   Fix for https://issues.apache.org/jira/browse/CAMEL-16628 (part 3)
   
   ## Motivation
   
   There are components that define their constants in an enum so it should be supported too.
   
   ## Modifications
   
   * Check if the header class is an enum and if so accept any field annotated with `@Metadata`
   * Use the name of the field as header name in case of an enum


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel] essobedo merged pull request #7247: CAMEL-16628: Allow to define headers in an enum

Posted by GitBox <gi...@apache.org>.
essobedo merged pull request #7247:
URL: https://github.com/apache/camel/pull/7247


   


-- 
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-unsubscribe@camel.apache.org

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