3 Replies Latest reply on Apr 22, 2011 5:23 AM by Claus Ibsen

    TypeConverter interface

    mahmud fatafta Newbie

      I am trying to understand how is the TypeConverter implementation will be used by Camel. How does Camel decide which convertTo method to call? How can I force Camel to call the convertTo that takes the Exchange as a parameter but not the other methods?

       

      Is there a better example that I can follow?

       

      private class MyOrderTypeConverter implements TypeConverter {

       

          @SuppressWarnings("unchecked")

          public  type, Exchange exchange, Object value) {

              return convertTo(type, value);

          }

      }