Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
When the headers class is an enum, so far the name of the headers can only be the name of the values of the enum which is not enough in some particular use cases. The idea of this improvement is to be able to provide the name of the field or method to invoke in order to get the name of the corresponding header.
In the next example, if the enum "SomeEnum" is declared as the headers class of a component, with the current code only "FOO" and "BAR" are possible values for the name of the headers while here we would rather expect "fooKey" and "barKey".
public enum SomeEnum { FOO("fooKey"), BAR("barKey"); public final String headerName; SomeEnum(final String str) { this.headerName = str; } }
Attachments
Issue Links
- is related to
-
CAMEL-16628 camel-core - SPI annotations for message headers
- Resolved
- links to