Class StaticMethodFallbackTypeConverter

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

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

      • StaticMethodFallbackTypeConverter

        public StaticMethodFallbackTypeConverter​(Method method,
                                                 org.apache.camel.spi.TypeConverterRegistry registry,
                                                 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)