You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/10/20 10:07:41 UTC

[jira] Resolved: (CAMEL-3255) Add property to DefaultCamelContext to allow for lazy loading of the DefaultTypeConverter

     [ https://issues.apache.org/activemq/browse/CAMEL-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3255.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.0

davsclaus:(svn)camel[trunk:1024541]/$ svn commit --message "CAMEL-3255: Type converters can now be lazy loaded. Thanks to Mark Ford for patch which I can leverage pieces from."
Sending        camel-core/src/main/java/org/apache/camel/CamelContext.java
Sending        camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
Adding         camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java
Replacing      camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
Adding         camel-core/src/main/java/org/apache/camel/impl/converter/LazyLoadingTypeConverter.java
Sending        camel-core/src/main/java/org/apache/camel/spi/TypeConverterAware.java
Sending        camel-core/src/test/java/org/apache/camel/converter/JaxpTest.java
Adding         camel-core/src/test/java/org/apache/camel/impl/DefaultCamelContextLazyLoadTypeConvertersTest.java
Sending        camel-core/src/test/resources/log4j.properties
Sending        components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
Sending        components/camel-blueprint/src/test/resources/test.xml
Sending        components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
Sending        components/camel-spring/src/main/java/org/apache/camel/spring/CamelContextFactoryBean.java
Adding         components/camel-spring/src/test/java/org/apache/camel/spring/CamelContextLazyLoadTypeConvertersTest.java
Sending        components/camel-spring/src/test/resources/log4j.properties
Adding         components/camel-spring/src/test/resources/org/apache/camel/spring/CamelContextLazyLoadTypeConvertersTest.xml
Transmitting file data ................
Committed revision 1024542.

> Add property to DefaultCamelContext to allow for lazy loading of the DefaultTypeConverter
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3255
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3255
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.2.0, 2.3.0, 2.4.0
>            Reporter: Mark Ford
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>         Attachments: patch.txt
>
>
> The loading of type converters was changed from a lazy loading to an up front loading in a Camel 2.2. See issue CAMEL-2392 for details. Accordingly to the logging, it takes approximately 300 millis for this process to complete. 
> The proposal is to allow the configuration of this loading strategy for cases where the initialization time of contexts is more important than the loading of type converters. The "lazyLoadTypeConverters" property on the context will default to false to preserve the current up front loading behavior as the default. If this value is set to true, then the loading of the type converters will happen when accessed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.