camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edison zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3746) register a customized typeconverter in Spring
Date Thu, 03 Mar 2011 01:21:36 GMT
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
             Fix For: 2.4.0


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

        

Mime
View raw message