camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/6] camel git commit: CAMEL-9389: Introduce a MessageHistoryFactory
Date Sat, 05 Dec 2015 08:29:24 GMT
Repository: camel
Updated Branches:
  refs/heads/master 4a205fdfd -> a23702140


CAMEL-9389: Introduce a MessageHistoryFactory


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8fb44bb5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8fb44bb5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8fb44bb5

Branch: refs/heads/master
Commit: 8fb44bb5ae77a6d3da838a4cf99991418c7ed3c8
Parents: 4a205fd
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Dec 5 08:49:54 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Dec 5 08:49:54 2015 +0100

----------------------------------------------------------------------
 .../apache/camel/core/xml/AbstractCamelContextFactoryBean.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8fb44bb5/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
----------------------------------------------------------------------
diff --git a/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
b/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
index 0aef50b..68ad71a 100644
--- a/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
+++ b/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
@@ -85,6 +85,7 @@ import org.apache.camel.spi.InterceptStrategy;
 import org.apache.camel.spi.LifecycleStrategy;
 import org.apache.camel.spi.ManagementNamingStrategy;
 import org.apache.camel.spi.ManagementStrategy;
+import org.apache.camel.spi.MessageHistoryFactory;
 import org.apache.camel.spi.ModelJAXBContextFactory;
 import org.apache.camel.spi.NodeIdFactory;
 import org.apache.camel.spi.PackageScanClassResolver;
@@ -1025,5 +1026,10 @@ public abstract class AbstractCamelContextFactoryBean<T extends
ModelCamelContex
             LOG.info("Using custom StreamCachingStrategy: {}", streamCachingStrategy);
             getContext().setStreamCachingStrategy(streamCachingStrategy);
         }
+        MessageHistoryFactory messageHistoryFactory = getBeanForType(MessageHistoryFactory.class);
+        if (messageHistoryFactory != null) {
+            LOG.info("Using custom MessageHistoryFactory: {}", messageHistoryFactory);
+            getContext().setMessageHistoryFactory(messageHistoryFactory);
+        }
     }
 }


Mime
View raw message