Class StaticMethodTypeConverter

java.lang.Object
org.apache.camel.support.TypeConverterSupport
org.apache.camel.impl.converter.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
  • Field Summary

    Fields inherited from interface org.apache.camel.TypeConverter

    MISS_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    StaticMethodTypeConverter(Method method, boolean allowNull)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    <T> T
    convertTo(Class<T> type, org.apache.camel.Exchange exchange, Object value)
     
     

    Methods inherited from class org.apache.camel.support.TypeConverterSupport

    convertTo, mandatoryConvertTo, mandatoryConvertTo, tryConvertTo, tryConvertTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StaticMethodTypeConverter

      public StaticMethodTypeConverter(Method method, boolean allowNull)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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)