Class StaticMethodTypeConverter

  • All Implemented Interfaces:
    org.apache.camel.TypeConverter

    public class StaticMethodTypeConverter
    extends org.apache.camel.support.TypeConverterSupport
    A TypeConverter implementation which invokes a static method to convert from a type to another type
    • Constructor Detail

      • StaticMethodTypeConverter

        public StaticMethodTypeConverter​(Method method,
                                         boolean allowNull)
    • Method Detail

      • allowNull

        public boolean allowNull()
        Specified by:
        allowNull in interface org.apache.camel.TypeConverter
        Overrides:
        allowNull in class org.apache.camel.support.TypeConverterSupport
      • convertTo

        public <T> T convertTo​(Class<T> type,
                               org.apache.camel.Exchange exchange,
                               Object value)