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

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


The following commit(s) were added to refs/heads/main by this push:
     new 485d5ee88c87 CAMEL-24109: camel-xslt-saxon - remove duplicated 
doInit/doStart lifecycle (#24778)
485d5ee88c87 is described below

commit 485d5ee88c87b116198e988ad1c9f2c39bc16406
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 16 15:39:10 2026 +0200

    CAMEL-24109: camel-xslt-saxon - remove duplicated doInit/doStart lifecycle 
(#24778)
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../component/xslt/saxon/XsltSaxonEndpoint.java    | 26 ----------------------
 1 file changed, 26 deletions(-)

diff --git 
a/components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/XsltSaxonEndpoint.java
 
b/components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/XsltSaxonEndpoint.java
index 4b2e0cd44cd3..433c5bce381b 100644
--- 
a/components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/XsltSaxonEndpoint.java
+++ 
b/components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/XsltSaxonEndpoint.java
@@ -55,7 +55,6 @@ import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.support.EndpointHelper;
-import org.apache.camel.support.ResourceHelper;
 import org.apache.camel.support.builder.ExpressionBuilder;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -189,31 +188,6 @@ public class XsltSaxonEndpoint extends XsltEndpoint {
         this.useJsonBody = useJsonBody;
     }
 
-    @Override
-    protected void doInit() throws Exception {
-        super.doInit();
-
-        // the processor is the xslt builder
-        setXslt(createXsltBuilder());
-
-        // must load resource first which sets a template and do a stylesheet 
compilation to catch errors early
-        // load resource from classpath otherwise load in doStart()
-        if (isContentCache() && 
ResourceHelper.isClasspathUri(getResourceUri())) {
-            loadResource(getResourceUri(), getXslt());
-        }
-
-        setProcessor(getXslt());
-    }
-
-    @Override
-    protected void doStart() throws Exception {
-        super.doStart();
-
-        if (isContentCache() && 
!ResourceHelper.isClasspathUri(getResourceUri())) {
-            loadResource(getResourceUri(), getXslt());
-        }
-    }
-
     @Override
     protected XsltSaxonBuilder createXsltBuilder() throws Exception {
         final CamelContext ctx = getCamelContext();

Reply via email to