Class InstanceMethodFallbackTypeConverter

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

    public class InstanceMethodFallbackTypeConverter
    extends org.apache.camel.support.TypeConverterSupport
    A TypeConverter implementation which instantiates an object so that an instance method can be used as a fallback type converter
    • Constructor Detail

      • InstanceMethodFallbackTypeConverter

        public InstanceMethodFallbackTypeConverter​(org.apache.camel.impl.converter.CachingInjector<?> injector,
                                                   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)