This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch lang2
in repository https://gitbox.apache.org/repos/asf/camel.git

commit fba6cf0e08a9d1acbfa6be51cdd00c03e327cdac
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Feb 2 11:03:38 2024 +0100

    CAMEL-20378: Languages should be thread-safe and be configured only via 
properties array, all in the same way.
---
 .../org/apache/camel/language/xquery/XQueryLanguage.java   |  3 +++
 .../org/apache/camel/language/xpath/XPathLanguage.java     | 14 --------------
 2 files changed, 3 insertions(+), 14 deletions(-)

diff --git 
a/components/camel-saxon/src/main/java/org/apache/camel/language/xquery/XQueryLanguage.java
 
b/components/camel-saxon/src/main/java/org/apache/camel/language/xquery/XQueryLanguage.java
index 7afe8b9b890..219b29111fc 100644
--- 
a/components/camel-saxon/src/main/java/org/apache/camel/language/xquery/XQueryLanguage.java
+++ 
b/components/camel-saxon/src/main/java/org/apache/camel/language/xquery/XQueryLanguage.java
@@ -35,6 +35,9 @@ public class XQueryLanguage extends 
SingleInputTypedLanguageSupport implements P
         return configuration;
     }
 
+    /**
+     * To use an existing Saxon configuration, instead of default settings.
+     */
     public void setConfiguration(Configuration configuration) {
         this.configuration = configuration;
     }
diff --git 
a/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathLanguage.java
 
b/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathLanguage.java
index 0bb008cf6ac..b41cde8862d 100644
--- 
a/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathLanguage.java
+++ 
b/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathLanguage.java
@@ -97,16 +97,6 @@ public class XPathLanguage extends 
SingleInputTypedLanguageSupport implements Pr
         this.xpathFactory = xpathFactory;
     }
 
-    @Deprecated
-    public void setUseSaxon(Boolean useSaxon) {
-        setSaxon(useSaxon);
-    }
-
-    @Deprecated
-    public Boolean getUseSaxon() {
-        return getSaxon();
-    }
-
     public Boolean getSaxon() {
         return saxon;
     }
@@ -222,10 +212,6 @@ public class XPathLanguage extends 
SingleInputTypedLanguageSupport implements Pr
             case "xpathFactory":
                 
setXpathFactory(PropertyConfigurerSupport.property(camelContext, 
XPathFactory.class, value));
                 return true;
-            case "usesaxon":
-            case "useSaxon":
-                setUseSaxon(PropertyConfigurerSupport.property(camelContext, 
Boolean.class, value));
-                return true;
             case "saxon":
                 setSaxon(PropertyConfigurerSupport.property(camelContext, 
Boolean.class, value));
                 return true;

Reply via email to