camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r908412 - /camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
Date Wed, 10 Feb 2010 09:36:10 GMT
Author: davsclaus
Date: Wed Feb 10 09:36:08 2010
New Revision: 908412

URL: http://svn.apache.org/viewvc?rev=908412&view=rev
Log:
Added builder method to set a custom xpath factory

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=908412&r1=908411&r2=908412&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 Wed
Feb 10 09:36:08 2010
@@ -307,6 +307,19 @@
         return this;
     }
 
+    /**
+     * Configures to use the provided XPath factory.
+     * <p/>
+     * Can be used to use Saxon instead of the build in factory from the JDK.
+     *
+     * @param xpathFactory the xpath factory to use
+     * @return the current builder.
+     */
+    public XPathBuilder factory(XPathFactory xpathFactory) {
+        setXPathFactory(xpathFactory);
+        return this;
+    }
+
     // Properties
     // -------------------------------------------------------------------------
     public XPathFactory getXPathFactory() throws XPathFactoryConfigurationException {



Mime
View raw message