Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10840

CsvDataFormat.setRecordConverterRef not usable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.18.1
    • Fix Version/s: 2.18.3, 2.19.0
    • Component/s: camel-csv
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Following interface org.apache.camel.dataformat.csv.CsvRecordConverter is package protected. This is actually fine because it is used internally. There are two implementations in CsvRecordConverters. However org.apache.camel.model.dataformat.CsvDataFormat contains following public methods:

      public String getRecordConverterRef() {
          return recordConverterRef;
      }
      
      /**
       * Refers to a custom <tt>CsvRecordConverter</tt> to lookup from the registry to use.
       */
      public void setRecordConverterRef(String recordConverterRef) {
          this.recordConverterRef = recordConverterRef;
      }
      

      So, it seems possible to specify my own CsvRecordConverter but, because of the point mentioned earlier, this is actually NOT (easily) possible.
      I came across this point because I was looking for a mechanism allowing me to proxy the values being taken from CSVRecord to Map or List.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                christianr Christian Ribeaud
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: