Search in sources :

Example 1 with BaseTypeConverterRegistry

use of org.apache.camel.impl.converter.BaseTypeConverterRegistry in project camel by apache.

the class DefaultCamelContext method createTypeConverter.

/**
     * Lazily create a default implementation
     */
protected TypeConverter createTypeConverter() {
    BaseTypeConverterRegistry answer;
    if (isLazyLoadTypeConverters()) {
        answer = new LazyLoadingTypeConverter(packageScanClassResolver, getInjector(), getDefaultFactoryFinder());
    } else {
        answer = new DefaultTypeConverter(packageScanClassResolver, getInjector(), getDefaultFactoryFinder());
    }
    answer.setCamelContext(this);
    setTypeConverterRegistry(answer);
    return answer;
}
Also used : DefaultTypeConverter(org.apache.camel.impl.converter.DefaultTypeConverter) LazyLoadingTypeConverter(org.apache.camel.impl.converter.LazyLoadingTypeConverter) BaseTypeConverterRegistry(org.apache.camel.impl.converter.BaseTypeConverterRegistry)

Aggregations

BaseTypeConverterRegistry (org.apache.camel.impl.converter.BaseTypeConverterRegistry)1 DefaultTypeConverter (org.apache.camel.impl.converter.DefaultTypeConverter)1 LazyLoadingTypeConverter (org.apache.camel.impl.converter.LazyLoadingTypeConverter)1