[ https://issues.apache.org/jira/browse/CAMEL-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001847#comment-13001847 ]
Willem Jiang commented on CAMEL-3746: ------------------------------------- Hi Current CamelContextFactoryBean doesn't expose the typeConverter property out, so you can't add the typeConverter directly from spring configuration. But the Camel Converter supposes to load the converters by scan the packages with @Converter annotation, so you don't need to write any custom code to tell the TypeConverterRegistry to load the converter for you. You can find more information [here|http://camel.apache.org/type-converter.html]. If you still want to register the TypeConverter yourself, you can try to implement a BeanPostProcessor yourself. Willem > register a customized typeconverter in Spring > --------------------------------------------- > > Key: CAMEL-3746 > URL: https://issues.apache.org/jira/browse/CAMEL-3746 > Project: Camel > Issue Type: Wish > Components: camel-spring > Affects Versions: 2.4.0 > Environment: WIN XP, JDK 1.5 > Reporter: edison zhou > Labels: features > Fix For: 2.4.0 > > Original Estimate: 96h > Remaining Estimate: 96h > > Can I register a customized typeconverter in spring xml? Now I just use below > code. > CamelContext context = new DefaultCamelContext(); > context.getTypeConverterRegistry().addTypeConverter(InputStream.class, > String.class, new StringToInputStreamConverter()); -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira