You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2012/11/30 10:53:30 UTC

svn commit: r1415564 - /camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java

Author: davsclaus
Date: Fri Nov 30 09:53:29 2012
New Revision: 1415564

URL: http://svn.apache.org/viewvc?rev=1415564&view=rev
Log:
CAMEL-5835: Fixed xpath builder to force layy creating default functions, for thread safety.

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java?rev=1415564&r1=1415563&r2=1415564&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java Fri Nov 30 09:53:29 2012
@@ -1085,6 +1085,14 @@ public class XPathBuilder implements Exp
         if (xpathFactory == null) {
             initDefaultXPathFactory();
         }
+
+        // force lazy creating default functions
+        getBodyFunction();
+        getHeaderFunction();
+        getOutBodyFunction();
+        getOutHeaderFunction();
+        getPropertiesFunction();
+        getSimpleFunction();
     }
 
     public void stop() throws Exception {