use of org.apache.camel.impl.converter.LazyLoadingTypeConverter 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;
}
Aggregations