From acb827de8375fd8226a90aa66f72b514f7a093d0 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:35:15 +0000 Subject: [PATCH 01/37] (chores): fix SonarCloud S5993 in camel-api Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../src/main/java/org/apache/camel/spi/Transformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java b/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java index 09e48fd359b58..195b4277fcfe0 100644 --- a/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java +++ b/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java @@ -37,7 +37,7 @@ public abstract class Transformer extends ServiceSupport implements CamelContext private DataType from; private DataType to; - public Transformer() { + protected Transformer() { if (this.getClass().isAnnotationPresent(DataTypeTransformer.class)) { DataTypeTransformer annotation = this.getClass().getAnnotation(DataTypeTransformer.class); if (ObjectHelper.isNotEmpty(annotation.name())) { @@ -54,7 +54,7 @@ public Transformer() { } } - public Transformer(String name) { + protected Transformer(String name) { this.name = name; } From 8bc7a6f59ec96f037f0d15cc359216ee8424c049 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:35:25 +0000 Subject: [PATCH 02/37] (chores): fix SonarCloud S5993 in camel-base Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/impl/converter/BaseTypeConverterRegistry.java | 4 ++-- .../org/apache/camel/impl/event/AbstractContextEvent.java | 2 +- .../org/apache/camel/impl/event/AbstractExchangeEvent.java | 2 +- .../java/org/apache/camel/impl/event/AbstractRouteEvent.java | 2 +- .../java/org/apache/camel/impl/event/AbstractStepEvent.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java b/core/camel-base/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java index 4d0e868e09738..5daec0415626b 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java @@ -64,8 +64,8 @@ public abstract class BaseTypeConverterRegistry extends CoreTypeConverterRegistr protected PackageScanClassResolver resolver; protected Injector injector; - public BaseTypeConverterRegistry(CamelContext camelContext, PackageScanClassResolver resolver, Injector injector, - boolean statisticsEnabled) { + protected BaseTypeConverterRegistry(CamelContext camelContext, PackageScanClassResolver resolver, Injector injector, + boolean statisticsEnabled) { super(statisticsEnabled); this.camelContext = camelContext; diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractContextEvent.java b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractContextEvent.java index 9a0c84e72d3d6..cf77d7be8fdd7 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractContextEvent.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractContextEvent.java @@ -30,7 +30,7 @@ public abstract class AbstractContextEvent extends EventObject implements CamelC private final CamelContext context; private long timestamp; - public AbstractContextEvent(CamelContext source) { + protected AbstractContextEvent(CamelContext source) { super(source); this.context = source; } diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractExchangeEvent.java b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractExchangeEvent.java index 1f3e89a556cbf..7c7802d07da74 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractExchangeEvent.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractExchangeEvent.java @@ -30,7 +30,7 @@ public abstract class AbstractExchangeEvent extends EventObject implements Excha private final Exchange exchange; private long timestamp; - public AbstractExchangeEvent(Exchange source) { + protected AbstractExchangeEvent(Exchange source) { super(source); this.exchange = source; } diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractRouteEvent.java b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractRouteEvent.java index 828344a0ad3e4..c169c340316d0 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractRouteEvent.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractRouteEvent.java @@ -31,7 +31,7 @@ public abstract class AbstractRouteEvent extends EventObject implements RouteEve private final Route route; private long timestamp; - public AbstractRouteEvent(Route source) { + protected AbstractRouteEvent(Route source) { super(source); this.route = source; } diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractStepEvent.java b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractStepEvent.java index ece64ed2dac5c..cae279e4a0b7f 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractStepEvent.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/event/AbstractStepEvent.java @@ -28,7 +28,7 @@ public abstract class AbstractStepEvent extends AbstractExchangeEvent { private final String stepId; - public AbstractStepEvent(Exchange source, String stepId) { + protected AbstractStepEvent(Exchange source, String stepId) { super(source); this.stepId = stepId; } From cc57af909a968b46330d12b72ed6dfaf36866f71 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:35:35 +0000 Subject: [PATCH 03/37] (chores): fix SonarCloud S5993 in camel-core-languages Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../java/org/apache/camel/language/simple/BaseSimpleParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/BaseSimpleParser.java b/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/BaseSimpleParser.java index e181c12d5dd7c..c8e67a908a560 100644 --- a/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/BaseSimpleParser.java +++ b/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/BaseSimpleParser.java @@ -72,7 +72,7 @@ protected BaseSimpleParser(CamelContext camelContext, String expression, boolean this(camelContext, expression, allowEscape, new SimpleTokenizer()); } - public BaseSimpleParser(CamelContext camelContext, String expression, boolean allowEscape, SimpleTokenizer tokenizer) { + protected BaseSimpleParser(CamelContext camelContext, String expression, boolean allowEscape, SimpleTokenizer tokenizer) { this.camelContext = camelContext; this.expression = expression; this.allowEscape = allowEscape; From a4da6cb33ea57f7da02f6075e984173771258e0b Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:35:49 +0000 Subject: [PATCH 04/37] (chores): fix SonarCloud S5993 in camel-core-model Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/model.properties | 20 +++++++++++++++++++ .../camel/builder/AdviceWithRouteBuilder.java | 4 ++-- .../apache/camel/builder/RouteBuilder.java | 4 ++-- .../camel/model/BasicExpressionNode.java | 8 ++++---- .../model/BasicOutputExpressionNode.java | 10 +++++----- .../apache/camel/model/ExpressionNode.java | 8 ++++---- .../camel/model/LoadBalancerDefinition.java | 2 +- .../camel/model/OutputExpressionNode.java | 12 +++++------ .../apache/camel/model/SendDefinition.java | 4 ++-- .../TransactionErrorHandlerDefinition.java | 4 ++-- .../model/rest/RestSecurityDefinition.java | 4 ++-- .../transformer/TransformerDefinition.java | 2 +- .../model/validator/ValidatorDefinition.java | 2 +- 13 files changed, 52 insertions(+), 32 deletions(-) diff --git a/core/camel-core-model/src/generated/resources/META-INF/services/org/apache/camel/model.properties b/core/camel-core-model/src/generated/resources/META-INF/services/org/apache/camel/model.properties index bd8dde1e716f5..1b1704a1b0bda 100644 --- a/core/camel-core-model/src/generated/resources/META-INF/services/org/apache/camel/model.properties +++ b/core/camel-core-model/src/generated/resources/META-INF/services/org/apache/camel/model.properties @@ -12,11 +12,16 @@ beanFactory beanio bearerToken bindy +blacklistServiceFilter +cachingServiceDiscovery cbor choice circuitBreaker claimCheck +combinedServiceDiscovery +combinedServiceFilter constant +consulServiceDiscovery contextScan convertBodyTo convertHeaderTo @@ -26,6 +31,7 @@ csimple csv custom customLoadBalancer +customServiceFilter customTransformer customValidator dataFormatTransformer @@ -33,9 +39,11 @@ dataFormats datasonnet deadLetterChannel defaultErrorHandler +defaultLoadBalancer delay delete dfdl +dnsServiceDiscovery doCatch doFinally doTry @@ -64,6 +72,7 @@ groovyXml gzipDeflater head header +healthyServiceFilter hl7 hl7terser ical @@ -84,6 +93,7 @@ jsonApi jsonpath jtaTransactionErrorHandler kamelet +kubernetesServiceDiscovery langChain4jCharacterTokenizer langChain4jLineTokenizer langChain4jParagraphTokenizer @@ -91,6 +101,7 @@ langChain4jSentenceTokenizer langChain4jWordTokenizer language loadBalance +loadBalancerConfiguration loadTransformer log loop @@ -117,6 +128,7 @@ outputType packageScan param parquetAvro +passThroughServiceFilter patch pausable pgp @@ -173,6 +185,12 @@ sample script security securityDefinitions +serviceCall +serviceCallConfiguration +serviceChooserConfiguration +serviceDiscoveryConfiguration +serviceExpression +serviceFilterConfiguration setBody setExchangePattern setHeader @@ -187,6 +205,7 @@ sort spel split springTransactionErrorHandler +staticServiceDiscovery step stickyLoadBalancer stop @@ -233,3 +252,4 @@ xtokenize yaml zipDeflater zipFile +zookeeperServiceDiscovery diff --git a/core/camel-core-model/src/main/java/org/apache/camel/builder/AdviceWithRouteBuilder.java b/core/camel-core-model/src/main/java/org/apache/camel/builder/AdviceWithRouteBuilder.java index 62c3f405c7165..e15f015a59467 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/builder/AdviceWithRouteBuilder.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/builder/AdviceWithRouteBuilder.java @@ -43,10 +43,10 @@ public abstract class AdviceWithRouteBuilder extends RouteBuilder { private final List adviceWithTasks = new ArrayList<>(); private boolean logRouteAsXml = true; - public AdviceWithRouteBuilder() { + protected AdviceWithRouteBuilder() { } - public AdviceWithRouteBuilder(CamelContext context) { + protected AdviceWithRouteBuilder(CamelContext context) { super(context); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/builder/RouteBuilder.java b/core/camel-core-model/src/main/java/org/apache/camel/builder/RouteBuilder.java index 52c8105ab3916..2f74dd05e06ba 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/builder/RouteBuilder.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/builder/RouteBuilder.java @@ -90,11 +90,11 @@ public abstract class RouteBuilder extends BuilderSupport implements RoutesBuild private RouteTemplatesDefinition routeTemplateCollection = new RouteTemplatesDefinition(); private TemplatedRoutesDefinition templatedRouteCollection = new TemplatedRoutesDefinition(); - public RouteBuilder() { + protected RouteBuilder() { this(null); } - public RouteBuilder(CamelContext context) { + protected RouteBuilder(CamelContext context) { super(context); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/BasicExpressionNode.java b/core/camel-core-model/src/main/java/org/apache/camel/model/BasicExpressionNode.java index d0b80fd718f0e..abb6ca8df1387 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/BasicExpressionNode.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/BasicExpressionNode.java @@ -37,18 +37,18 @@ public abstract class BasicExpressionNode> exte @XmlElementRef private ExpressionDefinition expression; - public BasicExpressionNode() { + protected BasicExpressionNode() { } - public BasicExpressionNode(ExpressionDefinition expression) { + protected BasicExpressionNode(ExpressionDefinition expression) { setExpression(expression); } - public BasicExpressionNode(Expression expression) { + protected BasicExpressionNode(Expression expression) { setExpression(expression); } - public BasicExpressionNode(Predicate predicate) { + protected BasicExpressionNode(Predicate predicate) { setPredicate(predicate); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/BasicOutputExpressionNode.java b/core/camel-core-model/src/main/java/org/apache/camel/model/BasicOutputExpressionNode.java index 469905347bd0e..33dad025217fe 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/BasicOutputExpressionNode.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/BasicOutputExpressionNode.java @@ -42,23 +42,23 @@ public abstract class BasicOutputExpressionNode extends BasicExpressionNode> outputs = new ArrayList<>(); - public BasicOutputExpressionNode() { + protected BasicOutputExpressionNode() { } - public BasicOutputExpressionNode(BasicOutputExpressionNode source) { + protected BasicOutputExpressionNode(BasicOutputExpressionNode source) { super(source); this.outputs = ProcessorDefinitionHelper.deepCopyDefinitions(source.outputs); } - public BasicOutputExpressionNode(ExpressionDefinition expression) { + protected BasicOutputExpressionNode(ExpressionDefinition expression) { super(expression); } - public BasicOutputExpressionNode(Expression expression) { + protected BasicOutputExpressionNode(Expression expression) { super(expression); } - public BasicOutputExpressionNode(Predicate predicate) { + protected BasicOutputExpressionNode(Predicate predicate) { super(predicate); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/ExpressionNode.java b/core/camel-core-model/src/main/java/org/apache/camel/model/ExpressionNode.java index 6336cd6e4492f..bc87ac417bc4f 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/ExpressionNode.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/ExpressionNode.java @@ -44,18 +44,18 @@ public abstract class ExpressionNode extends ProcessorDefinition @XmlElementRef private ExpressionDefinition expression; - public ExpressionNode() { + protected ExpressionNode() { } - public ExpressionNode(ExpressionDefinition expression) { + protected ExpressionNode(ExpressionDefinition expression) { setExpression(expression); } - public ExpressionNode(Expression expression) { + protected ExpressionNode(Expression expression) { setExpression(expression); } - public ExpressionNode(Predicate predicate) { + protected ExpressionNode(Predicate predicate) { setPredicate(predicate); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/LoadBalancerDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/LoadBalancerDefinition.java index 4fb0616b22b4e..8f4310dd76509 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/LoadBalancerDefinition.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/LoadBalancerDefinition.java @@ -26,7 +26,7 @@ public abstract class LoadBalancerDefinition extends IdentifiedType implements C @XmlTransient private String loadBalancerTypeName; - public LoadBalancerDefinition() { + protected LoadBalancerDefinition() { } protected LoadBalancerDefinition(LoadBalancerDefinition source) { diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/OutputExpressionNode.java b/core/camel-core-model/src/main/java/org/apache/camel/model/OutputExpressionNode.java index fde1d015df5d6..f03fbcd69efbf 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/OutputExpressionNode.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/OutputExpressionNode.java @@ -38,27 +38,27 @@ public abstract class OutputExpressionNode extends ExpressionNode implements Out @XmlElementRef private List> outputs = new ArrayList<>(); - public OutputExpressionNode() { + protected OutputExpressionNode() { } - public OutputExpressionNode(OutputExpressionNode source) { + protected OutputExpressionNode(OutputExpressionNode source) { super(source); this.outputs = ProcessorDefinitionHelper.deepCopyDefinitions(source.outputs); } - public OutputExpressionNode(ExpressionNode source) { + protected OutputExpressionNode(ExpressionNode source) { super(source); } - public OutputExpressionNode(ExpressionDefinition expression) { + protected OutputExpressionNode(ExpressionDefinition expression) { super(expression); } - public OutputExpressionNode(Expression expression) { + protected OutputExpressionNode(Expression expression) { super(expression); } - public OutputExpressionNode(Predicate predicate) { + protected OutputExpressionNode(Predicate predicate) { super(predicate); } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java index 10a868b7526bb..2e9b04ac2330f 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java @@ -44,10 +44,10 @@ public abstract class SendDefinition> ext @Metadata(required = true) protected String uri; - public SendDefinition() { + protected SendDefinition() { } - public SendDefinition(String uri) { + protected SendDefinition(String uri) { this.uri = uri; } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/errorhandler/TransactionErrorHandlerDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/errorhandler/TransactionErrorHandlerDefinition.java index 03799a3f1372a..08d0d8fd4a7ea 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/errorhandler/TransactionErrorHandlerDefinition.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/errorhandler/TransactionErrorHandlerDefinition.java @@ -37,10 +37,10 @@ public abstract class TransactionErrorHandlerDefinition extends DefaultErrorHand @Metadata(javaType = "org.apache.camel.LoggingLevel", defaultValue = "WARN", enums = "TRACE,DEBUG,INFO,WARN,ERROR,OFF") private String rollbackLoggingLevel; - public TransactionErrorHandlerDefinition() { + protected TransactionErrorHandlerDefinition() { } - public TransactionErrorHandlerDefinition(TransactionErrorHandlerDefinition source) { + protected TransactionErrorHandlerDefinition(TransactionErrorHandlerDefinition source) { super(source); this.transactedPolicy = source.transactedPolicy; this.transactedPolicyRef = source.transactedPolicyRef; diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestSecurityDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestSecurityDefinition.java index 7a594b22962a8..78b42c2ae3fb3 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestSecurityDefinition.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestSecurityDefinition.java @@ -38,10 +38,10 @@ public abstract class RestSecurityDefinition { @XmlAttribute private String description; - public RestSecurityDefinition() { + protected RestSecurityDefinition() { } - public RestSecurityDefinition(RestDefinition rest) { + protected RestSecurityDefinition(RestDefinition rest) { this.rest = rest; } diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/transformer/TransformerDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/transformer/TransformerDefinition.java index 9f84b07a29be6..3dd5a60e7ab88 100644 --- a/core/camel-core-model/src/main/java/org/apache/camel/model/transformer/TransformerDefinition.java +++ b/core/camel-core-model/src/main/java/org/apache/camel/model/transformer/TransformerDefinition.java @@ -55,7 +55,7 @@ public abstract class TransformerDefinition implements CopyableDefinition Date: Sat, 28 Mar 2026 13:36:02 +0000 Subject: [PATCH 05/37] (chores): fix SonarCloud S5993 in camel-core-processor Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../processor/BaseDelegateProcessorSupport.java | 2 +- .../camel/processor/DelayProcessorSupport.java | 6 +++--- .../apache/camel/processor/PooledTaskFactory.java | 4 ++-- .../errorhandler/RedeliveryErrorHandler.java | 14 ++++++++------ .../loadbalancer/WeightedLoadBalancer.java | 2 +- .../apache/camel/processor/saga/SagaProcessor.java | 4 ++-- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/BaseDelegateProcessorSupport.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/BaseDelegateProcessorSupport.java index 90fa29ff7580c..52a5229fb72cc 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/BaseDelegateProcessorSupport.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/BaseDelegateProcessorSupport.java @@ -24,7 +24,7 @@ */ public abstract class BaseDelegateProcessorSupport extends DelegateAsyncProcessor { - public BaseDelegateProcessorSupport(Processor processor) { + protected BaseDelegateProcessorSupport(Processor processor) { super(processor); } diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/DelayProcessorSupport.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/DelayProcessorSupport.java index a5b9a4c78599b..0854e4c05d53d 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/DelayProcessorSupport.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/DelayProcessorSupport.java @@ -82,12 +82,12 @@ public void done(boolean doneSync) { } } - public DelayProcessorSupport(CamelContext camelContext, Processor processor) { + protected DelayProcessorSupport(CamelContext camelContext, Processor processor) { this(camelContext, processor, null, false); } - public DelayProcessorSupport(CamelContext camelContext, Processor processor, ScheduledExecutorService executorService, - boolean shutdownExecutorService) { + protected DelayProcessorSupport(CamelContext camelContext, Processor processor, ScheduledExecutorService executorService, + boolean shutdownExecutorService) { super(processor); this.camelContext = camelContext; this.executorService = executorService; diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PooledTaskFactory.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PooledTaskFactory.java index 56668838ccfa8..30cfd2faa61df 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PooledTaskFactory.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PooledTaskFactory.java @@ -23,10 +23,10 @@ public abstract class PooledTaskFactory extends PooledObjectFactorySupport implements PooledExchangeTaskFactory { - public PooledTaskFactory() { + protected PooledTaskFactory() { } - public PooledTaskFactory(Object source) { + protected PooledTaskFactory(Object source) { super(source); } diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java index 63693b60dd375..2c154c122baed 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryErrorHandler.java @@ -108,12 +108,14 @@ public abstract class RedeliveryErrorHandler extends ErrorHandlerSupport protected final Processor onPrepareProcessor; protected final Processor onExceptionProcessor; - public RedeliveryErrorHandler(CamelContext camelContext, Processor output, CamelLogger logger, - Processor redeliveryProcessor, RedeliveryPolicy redeliveryPolicy, Processor deadLetter, - String deadLetterUri, boolean deadLetterHandleNewException, boolean useOriginalMessagePolicy, - boolean useOriginalBodyPolicy, - Predicate retryWhile, ScheduledExecutorService executorService, Processor onPrepareProcessor, - Processor onExceptionProcessor) { + protected RedeliveryErrorHandler(CamelContext camelContext, Processor output, CamelLogger logger, + Processor redeliveryProcessor, RedeliveryPolicy redeliveryPolicy, Processor deadLetter, + String deadLetterUri, boolean deadLetterHandleNewException, + boolean useOriginalMessagePolicy, + boolean useOriginalBodyPolicy, + Predicate retryWhile, ScheduledExecutorService executorService, + Processor onPrepareProcessor, + Processor onExceptionProcessor) { ObjectHelper.notNull(camelContext, "CamelContext", this); ObjectHelper.notNull(redeliveryPolicy, "RedeliveryPolicy", this); diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/loadbalancer/WeightedLoadBalancer.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/loadbalancer/WeightedLoadBalancer.java index 84037f146a75b..581abfcd9e9ab 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/loadbalancer/WeightedLoadBalancer.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/loadbalancer/WeightedLoadBalancer.java @@ -25,7 +25,7 @@ public abstract class WeightedLoadBalancer extends QueueLoadBalancer { transient int lastIndex = -1; - public WeightedLoadBalancer(List distributionRatios) { + protected WeightedLoadBalancer(List distributionRatios) { this.ratios = distributionRatios.stream() .map(DistributionRatio::new) .toList(); diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/saga/SagaProcessor.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/saga/SagaProcessor.java index b76050b47b5ad..a6ec4ec9d2ce7 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/saga/SagaProcessor.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/saga/SagaProcessor.java @@ -43,8 +43,8 @@ public abstract class SagaProcessor extends BaseDelegateProcessorSupport impleme private String id; private String routeId; - public SagaProcessor(CamelContext camelContext, Processor childProcessor, CamelSagaService sagaService, - SagaCompletionMode completionMode, CamelSagaStep step) { + protected SagaProcessor(CamelContext camelContext, Processor childProcessor, CamelSagaService sagaService, + SagaCompletionMode completionMode, CamelSagaStep step) { super(ObjectHelper.notNull(childProcessor, "childProcessor")); this.sagaService = ObjectHelper.notNull(sagaService, "sagaService"); this.completionMode = ObjectHelper.notNull(completionMode, "completionMode"); From 86e79ebfd7d4c23f308c4e19889d8116f2a1e69b Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:36:14 +0000 Subject: [PATCH 06/37] (chores): fix SonarCloud S5993 in camel-core-reifier Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../java/org/apache/camel/reifier/AbstractPolicyReifier.java | 4 ++-- .../main/java/org/apache/camel/reifier/AbstractReifier.java | 4 ++-- .../main/java/org/apache/camel/reifier/ProcessorReifier.java | 4 ++-- .../apache/camel/reifier/dataformat/DataFormatReifier.java | 2 +- .../apache/camel/reifier/transformer/TransformerReifier.java | 2 +- .../org/apache/camel/reifier/validator/ValidatorReifier.java | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractPolicyReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractPolicyReifier.java index 4e453d29d0569..9bbb45d426710 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractPolicyReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractPolicyReifier.java @@ -33,11 +33,11 @@ public abstract class AbstractPolicyReifier> ex private static final Logger LOG = LoggerFactory.getLogger(AbstractPolicyReifier.class); - public AbstractPolicyReifier(Route route, T definition) { + protected AbstractPolicyReifier(Route route, T definition) { super(route, definition); } - public AbstractPolicyReifier(CamelContext camelContext, T definition) { + protected AbstractPolicyReifier(CamelContext camelContext, T definition) { super(camelContext, definition); } diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractReifier.java index 802b60040a536..5b474db7da739 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/AbstractReifier.java @@ -42,12 +42,12 @@ public abstract class AbstractReifier implements BeanRepository { protected final org.apache.camel.Route route; protected final CamelContext camelContext; - public AbstractReifier(Route route) { + protected AbstractReifier(Route route) { this.route = ObjectHelper.notNull(route, "Route"); this.camelContext = route.getCamelContext(); } - public AbstractReifier(CamelContext camelContext) { + protected AbstractReifier(CamelContext camelContext) { this.route = null; this.camelContext = ObjectHelper.notNull(camelContext, "CamelContext"); } diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ProcessorReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ProcessorReifier.java index 3554e4c1c6d34..4c59eb367c372 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ProcessorReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ProcessorReifier.java @@ -158,12 +158,12 @@ public abstract class ProcessorReifier> extends protected final T definition; - public ProcessorReifier(Route route, T definition) { + protected ProcessorReifier(Route route, T definition) { super(route); this.definition = definition; } - public ProcessorReifier(CamelContext camelContext, T definition) { + protected ProcessorReifier(CamelContext camelContext, T definition) { super(camelContext); this.definition = definition; } diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java index 5a7982e3a4d38..3fdb7d6814d95 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java @@ -51,7 +51,7 @@ public abstract class DataFormatReifier extends protected final T definition; - public DataFormatReifier(CamelContext camelContext, T definition) { + protected DataFormatReifier(CamelContext camelContext, T definition) { super(camelContext); this.definition = definition; } diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/transformer/TransformerReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/transformer/TransformerReifier.java index 78b3cea2b71fc..6d1c22b64688c 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/transformer/TransformerReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/transformer/TransformerReifier.java @@ -38,7 +38,7 @@ public abstract class TransformerReifier extends AbstractReifier { protected final T definition; - public TransformerReifier(CamelContext camelContext, T definition) { + protected TransformerReifier(CamelContext camelContext, T definition) { super(camelContext); this.definition = definition; } diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/validator/ValidatorReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/validator/ValidatorReifier.java index 4587ec9f0e95b..e597c2bf6b9c8 100644 --- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/validator/ValidatorReifier.java +++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/validator/ValidatorReifier.java @@ -37,7 +37,7 @@ public abstract class ValidatorReifier extends AbstractReifier { protected final T definition; - public ValidatorReifier(CamelContext camelContext, T definition) { + protected ValidatorReifier(CamelContext camelContext, T definition) { super(camelContext); this.definition = definition; } From c84afa9dc2585dd00967db83c240b7da8a3275db Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:36:25 +0000 Subject: [PATCH 07/37] (chores): fix SonarCloud S5993 in camel-core-xml Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/core/xml/AbstractCamelContextFactoryBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java b/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java index 55e8c1125e571..46db2c59ca8c7 100644 --- a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java +++ b/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java @@ -167,7 +167,7 @@ public abstract class AbstractCamelContextFactoryBean Date: Sat, 28 Mar 2026 13:36:40 +0000 Subject: [PATCH 08/37] (chores): fix SonarCloud S5993 in camel-main Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/main/MainCommandLineSupport.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java index 104dc0d17040b..5ad0de5594a26 100644 --- a/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java +++ b/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java @@ -40,11 +40,11 @@ public abstract class MainCommandLineSupport extends MainSupport { private volatile boolean initOptionsDone; @SafeVarargs - public MainCommandLineSupport(Class... configurationClasses) { + protected MainCommandLineSupport(Class... configurationClasses) { super(configurationClasses); } - public MainCommandLineSupport() { + protected MainCommandLineSupport() { } public Properties getArgumentProperties() { @@ -304,7 +304,7 @@ public abstract static class Option { private final String fullName; private final String description; - public Option(String abbreviation, String fullName, String description) { + protected Option(String abbreviation, String fullName, String description) { this.abbreviation = "-" + abbreviation; this.fullName = "-" + fullName; this.description = description; @@ -340,7 +340,7 @@ public String getInformation() { public abstract class ParameterOption extends Option { private final String parameterName; - public ParameterOption(String abbreviation, String fullName, String description, String parameterName) { + protected ParameterOption(String abbreviation, String fullName, String description, String parameterName) { super(abbreviation, fullName, description); this.parameterName = parameterName; } From 7b2b5ddbe73c160c5cdc26e9ffd645ad0b2c9a81 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:36:53 +0000 Subject: [PATCH 09/37] (chores): fix SonarCloud S5993 in camel-support Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/component/ResourceEndpoint.java | 4 ++-- .../camel/support/DefaultAsyncProducer.java | 2 +- .../camel/support/DefaultComponent.java | 4 ++-- .../apache/camel/support/DefaultProducer.java | 2 +- .../camel/support/EventNotifierSupport.java | 2 +- .../HeaderFilterStrategyComponent.java | 4 ++-- .../camel/support/HeaderSelectorProducer.java | 22 +++++++++---------- .../camel/support/HealthCheckComponent.java | 4 ++-- .../camel/support/PollingConsumerSupport.java | 2 +- .../support/PooledObjectFactorySupport.java | 4 ++-- .../ScheduledBatchPollingConsumer.java | 4 ++-- .../camel/support/ScheduledPollConsumer.java | 4 ++-- .../support/SimpleEventNotifierSupport.java | 2 +- .../camel/support/cache/ServicePool.java | 2 +- .../component/AbstractApiComponent.java | 6 ++--- .../component/AbstractApiConsumer.java | 2 +- .../component/AbstractApiEndpoint.java | 6 ++--- .../component/AbstractApiProducer.java | 2 +- .../support/component/ApiMethodParser.java | 2 +- .../support/console/AbstractDevConsole.java | 2 +- .../support/scan/BasePackageScanResolver.java | 2 +- .../camel/support/task/AbstractTask.java | 2 +- 22 files changed, 43 insertions(+), 43 deletions(-) diff --git a/core/camel-support/src/main/java/org/apache/camel/component/ResourceEndpoint.java b/core/camel-support/src/main/java/org/apache/camel/component/ResourceEndpoint.java index a1a59c461f40a..d6112b45e9e33 100644 --- a/core/camel-support/src/main/java/org/apache/camel/component/ResourceEndpoint.java +++ b/core/camel-support/src/main/java/org/apache/camel/component/ResourceEndpoint.java @@ -61,10 +61,10 @@ public abstract class ResourceEndpoint extends ProcessorEndpoint implements Mana private final Lock lock = new ReentrantLock(); - public ResourceEndpoint() { + protected ResourceEndpoint() { } - public ResourceEndpoint(String endpointUri, Component component, String resourceUri) { + protected ResourceEndpoint(String endpointUri, Component component, String resourceUri) { super(endpointUri, component); this.resourceUri = resourceUri; } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/DefaultAsyncProducer.java b/core/camel-support/src/main/java/org/apache/camel/support/DefaultAsyncProducer.java index 24372acc97882..f374053976f34 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/DefaultAsyncProducer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/DefaultAsyncProducer.java @@ -29,7 +29,7 @@ */ public abstract class DefaultAsyncProducer extends DefaultProducer implements AsyncProducer { - public DefaultAsyncProducer(Endpoint endpoint) { + protected DefaultAsyncProducer(Endpoint endpoint) { super(endpoint); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/DefaultComponent.java b/core/camel-support/src/main/java/org/apache/camel/support/DefaultComponent.java index 5e70d60749e5c..ad07db3178fa4 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/DefaultComponent.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/DefaultComponent.java @@ -86,10 +86,10 @@ public abstract class DefaultComponent extends ServiceSupport implements Compone + " then creating and starting the producer may take a little time and prolong the total processing time of the processing.") private boolean lazyStartProducer; - public DefaultComponent() { + protected DefaultComponent() { } - public DefaultComponent(CamelContext context) { + protected DefaultComponent(CamelContext context) { this.camelContext = context; } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/DefaultProducer.java b/core/camel-support/src/main/java/org/apache/camel/support/DefaultProducer.java index dc4dc48275a00..cefd521392244 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/DefaultProducer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/DefaultProducer.java @@ -34,7 +34,7 @@ public abstract class DefaultProducer extends ServiceSupport implements Producer private transient String producerToString; private final Endpoint endpoint; - public DefaultProducer(Endpoint endpoint) { + protected DefaultProducer(Endpoint endpoint) { this.endpoint = endpoint; } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/EventNotifierSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/EventNotifierSupport.java index 2010b6dca965a..0bb36c69c04d6 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/EventNotifierSupport.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/EventNotifierSupport.java @@ -34,7 +34,7 @@ public abstract class EventNotifierSupport extends SimpleEventNotifierSupport im private CamelContext camelContext; - public EventNotifierSupport() { + protected EventNotifierSupport() { setupIgnore(false); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/HeaderFilterStrategyComponent.java b/core/camel-support/src/main/java/org/apache/camel/support/HeaderFilterStrategyComponent.java index 4e10fe283e8a5..d6dc9e77446a1 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/HeaderFilterStrategyComponent.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/HeaderFilterStrategyComponent.java @@ -31,10 +31,10 @@ public abstract class HeaderFilterStrategyComponent extends DefaultComponent imp description = "To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message.") private HeaderFilterStrategy headerFilterStrategy; - public HeaderFilterStrategyComponent() { + protected HeaderFilterStrategyComponent() { } - public HeaderFilterStrategyComponent(CamelContext context) { + protected HeaderFilterStrategyComponent(CamelContext context) { super(context); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/HeaderSelectorProducer.java b/core/camel-support/src/main/java/org/apache/camel/support/HeaderSelectorProducer.java index 6ac0edcd79d2e..5cb617324178f 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/HeaderSelectorProducer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/HeaderSelectorProducer.java @@ -51,41 +51,41 @@ public abstract class HeaderSelectorProducer extends DefaultAsyncProducer implem private InvokeOnHeaderStrategy strategy; private InvokeOnHeaderStrategy parentStrategy; - public HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier) { + protected HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier) { this(endpoint, headerSupplier, () -> null, null); } - public HeaderSelectorProducer(Endpoint endpoint, String header) { + protected HeaderSelectorProducer(Endpoint endpoint, String header) { this(endpoint, () -> header, () -> null, null); } - public HeaderSelectorProducer(Endpoint endpoint, String header, Object target) { + protected HeaderSelectorProducer(Endpoint endpoint, String header, Object target) { this(endpoint, () -> header, () -> null, target); } - public HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, Object target) { + protected HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, Object target) { this(endpoint, headerSupplier, () -> null, target); } - public HeaderSelectorProducer(Endpoint endpoint, String header, String defaultHeaderValue) { + protected HeaderSelectorProducer(Endpoint endpoint, String header, String defaultHeaderValue) { this(endpoint, () -> header, () -> defaultHeaderValue, null); } - public HeaderSelectorProducer(Endpoint endpoint, String header, Supplier defaultHeaderValueSupplier) { + protected HeaderSelectorProducer(Endpoint endpoint, String header, Supplier defaultHeaderValueSupplier) { this(endpoint, () -> header, defaultHeaderValueSupplier, null); } - public HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, - Supplier defaultHeaderValueSupplier) { + protected HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, + Supplier defaultHeaderValueSupplier) { this(endpoint, headerSupplier, defaultHeaderValueSupplier, null); } - public HeaderSelectorProducer(Endpoint endpoint, String header, String defaultHeaderValue, Object target) { + protected HeaderSelectorProducer(Endpoint endpoint, String header, String defaultHeaderValue, Object target) { this(endpoint, () -> header, () -> defaultHeaderValue, target); } - public HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, - Supplier defaultHeaderValueSupplier, Object target) { + protected HeaderSelectorProducer(Endpoint endpoint, Supplier headerSupplier, + Supplier defaultHeaderValueSupplier, Object target) { super(endpoint); this.headerSupplier = ObjectHelper.notNull(headerSupplier, "headerSupplier"); diff --git a/core/camel-support/src/main/java/org/apache/camel/support/HealthCheckComponent.java b/core/camel-support/src/main/java/org/apache/camel/support/HealthCheckComponent.java index de0107f75a234..925648794d7e5 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/HealthCheckComponent.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/HealthCheckComponent.java @@ -34,10 +34,10 @@ public abstract class HealthCheckComponent extends DefaultComponent { + " You can turn on producer checks globally by setting camel.health.producersEnabled=true.") private boolean healthCheckProducerEnabled = true; - public HealthCheckComponent() { + protected HealthCheckComponent() { } - public HealthCheckComponent(CamelContext context) { + protected HealthCheckComponent(CamelContext context) { super(context); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/PollingConsumerSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/PollingConsumerSupport.java index 61f3b9572761c..957f2b6921c96 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/PollingConsumerSupport.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/PollingConsumerSupport.java @@ -31,7 +31,7 @@ public abstract class PollingConsumerSupport extends ServiceSupport implements P private final Endpoint endpoint; private ExceptionHandler exceptionHandler; - public PollingConsumerSupport(Endpoint endpoint) { + protected PollingConsumerSupport(Endpoint endpoint) { this.endpoint = endpoint; this.exceptionHandler = new LoggingExceptionHandler(endpoint.getCamelContext(), getClass()); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/PooledObjectFactorySupport.java b/core/camel-support/src/main/java/org/apache/camel/support/PooledObjectFactorySupport.java index e8db72385194d..ed4feb28addc6 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/PooledObjectFactorySupport.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/PooledObjectFactorySupport.java @@ -36,11 +36,11 @@ public abstract class PooledObjectFactorySupport extends ServiceSupport imple protected int capacity = 100; protected boolean statisticsEnabled; - public PooledObjectFactorySupport() { + protected PooledObjectFactorySupport() { this.source = null; } - public PooledObjectFactorySupport(Object source) { + protected PooledObjectFactorySupport(Object source) { this.source = source; } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/ScheduledBatchPollingConsumer.java b/core/camel-support/src/main/java/org/apache/camel/support/ScheduledBatchPollingConsumer.java index fa03ebbdb7c73..d99244b6fab56 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/ScheduledBatchPollingConsumer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/ScheduledBatchPollingConsumer.java @@ -39,11 +39,11 @@ public abstract class ScheduledBatchPollingConsumer extends ScheduledPollConsume protected volatile int pendingExchanges; protected int maxMessagesPerPoll; - public ScheduledBatchPollingConsumer(Endpoint endpoint, Processor processor) { + protected ScheduledBatchPollingConsumer(Endpoint endpoint, Processor processor) { super(endpoint, processor); } - public ScheduledBatchPollingConsumer(Endpoint endpoint, Processor processor, ScheduledExecutorService executor) { + protected ScheduledBatchPollingConsumer(Endpoint endpoint, Processor processor, ScheduledExecutorService executor) { super(endpoint, processor, executor); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollConsumer.java b/core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollConsumer.java index c9cfdcb1258a2..016c1994c98ed 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollConsumer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/ScheduledPollConsumer.java @@ -82,11 +82,11 @@ public abstract class ScheduledPollConsumer extends DefaultConsumer private volatile boolean firstPollDone; private volatile boolean forceReady; - public ScheduledPollConsumer(Endpoint endpoint, Processor processor) { + protected ScheduledPollConsumer(Endpoint endpoint, Processor processor) { super(endpoint, processor); } - public ScheduledPollConsumer(Endpoint endpoint, Processor processor, ScheduledExecutorService scheduledExecutorService) { + protected ScheduledPollConsumer(Endpoint endpoint, Processor processor, ScheduledExecutorService scheduledExecutorService) { super(endpoint, processor); // we have been given an existing thread pool, so we should not manage its lifecycle // so we should keep shutdownExecutor as false diff --git a/core/camel-support/src/main/java/org/apache/camel/support/SimpleEventNotifierSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/SimpleEventNotifierSupport.java index 63cdbc88e339e..848c593155fd0 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/SimpleEventNotifierSupport.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/SimpleEventNotifierSupport.java @@ -46,7 +46,7 @@ public abstract class SimpleEventNotifierSupport extends ServiceSupport implemen boolean ignoreExchangeSentEvents; boolean ignoreStepEvents; - public SimpleEventNotifierSupport() { + protected SimpleEventNotifierSupport() { setupIgnore(true); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/cache/ServicePool.java b/core/camel-support/src/main/java/org/apache/camel/support/cache/ServicePool.java index 91a072a273e9f..7254a0f0dac57 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/cache/ServicePool.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/cache/ServicePool.java @@ -69,7 +69,7 @@ private interface Pool { void cleanUp(); } - public ServicePool(ThrowingFunction creator, Function getEndpoint, int capacity) { + protected ServicePool(ThrowingFunction creator, Function getEndpoint, int capacity) { this.creator = creator; this.getEndpoint = getEndpoint; this.capacity = capacity; diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiComponent.java b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiComponent.java index b1da635c2b71c..191c72eee6ad0 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiComponent.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiComponent.java @@ -51,7 +51,7 @@ public abstract class AbstractApiComponent & ApiName, T, S ext * @param collection The collection of API methods */ @Deprecated(since = "4.1.0") - public AbstractApiComponent(Class endpointClass, Class apiNameClass, S collection) { + protected AbstractApiComponent(Class endpointClass, Class apiNameClass, S collection) { this(apiNameClass, collection); } @@ -67,8 +67,8 @@ public AbstractApiComponent(Class endpointClass, Class ap * @param collection The collection of API methods */ @Deprecated(since = "4.2.0") - public AbstractApiComponent(CamelContext context, Class endpointClass, Class apiNameClass, - S collection) { + protected AbstractApiComponent(CamelContext context, Class endpointClass, Class apiNameClass, + S collection) { this(context, apiNameClass, collection); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiConsumer.java b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiConsumer.java index 0837e4346bfaf..f9348809e8c2e 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiConsumer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiConsumer.java @@ -41,7 +41,7 @@ public abstract class AbstractApiConsumer & ApiName, T> // split Array or Collection API method results into multiple Exchanges private boolean splitResult = true; - public AbstractApiConsumer(AbstractApiEndpoint endpoint, Processor processor) { + protected AbstractApiConsumer(AbstractApiEndpoint endpoint, Processor processor) { super(endpoint, processor); this.endpoint = endpoint; diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java index d8bab90c22b61..1444459b433b8 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java @@ -82,9 +82,9 @@ public abstract class AbstractApiEndpoint private Set configurationPropertyNames; private Map configurationProperties; - public AbstractApiEndpoint(String endpointUri, Component component, - E apiName, String methodName, ApiMethodHelper methodHelper, - T endpointConfiguration) { + protected AbstractApiEndpoint(String endpointUri, Component component, + E apiName, String methodName, ApiMethodHelper methodHelper, + T endpointConfiguration) { super(endpointUri, component); this.apiName = apiName; diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiProducer.java b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiProducer.java index c575e1292da01..e59d0a9c5e0a2 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiProducer.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiProducer.java @@ -49,7 +49,7 @@ public abstract class AbstractApiProducer & ApiName, T> // logger private final transient Logger log = LoggerFactory.getLogger(getClass()); - public AbstractApiProducer(AbstractApiEndpoint endpoint, ApiMethodPropertiesHelper propertiesHelper) { + protected AbstractApiProducer(AbstractApiEndpoint endpoint, ApiMethodPropertiesHelper propertiesHelper) { super(endpoint); this.propertiesHelper = propertiesHelper; this.endpoint = endpoint; diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/ApiMethodParser.java b/core/camel-support/src/main/java/org/apache/camel/support/component/ApiMethodParser.java index 9874ea0a893fe..05cf9e413ae46 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/ApiMethodParser.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/ApiMethodParser.java @@ -64,7 +64,7 @@ public abstract class ApiMethodParser { private final Map descriptions = new HashMap<>(); private ClassLoader classLoader = ApiMethodParser.class.getClassLoader(); - public ApiMethodParser(Class proxyType) { + protected ApiMethodParser(Class proxyType) { this.proxyType = proxyType; } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/console/AbstractDevConsole.java b/core/camel-support/src/main/java/org/apache/camel/support/console/AbstractDevConsole.java index c664c61d3b046..9d775429d20eb 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/console/AbstractDevConsole.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/console/AbstractDevConsole.java @@ -37,7 +37,7 @@ public abstract class AbstractDevConsole extends ServiceSupport implements DevCo private final String displayName; private final String description; - public AbstractDevConsole(String group, String id, String displayName, String description) { + protected AbstractDevConsole(String group, String id, String displayName, String description) { this.lock = new ReentrantLock(); this.group = group; this.id = id; diff --git a/core/camel-support/src/main/java/org/apache/camel/support/scan/BasePackageScanResolver.java b/core/camel-support/src/main/java/org/apache/camel/support/scan/BasePackageScanResolver.java index 538914ba8a3f6..d198ed37df2b6 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/scan/BasePackageScanResolver.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/scan/BasePackageScanResolver.java @@ -42,7 +42,7 @@ public abstract class BasePackageScanResolver extends ServiceSupport implements private final Set classLoaders = new LinkedHashSet<>(); private CamelContext camelContext; - public BasePackageScanResolver() { + protected BasePackageScanResolver() { initialize(); } diff --git a/core/camel-support/src/main/java/org/apache/camel/support/task/AbstractTask.java b/core/camel-support/src/main/java/org/apache/camel/support/task/AbstractTask.java index f613ccc9ed622..2ea8f365c8a9e 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/task/AbstractTask.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/task/AbstractTask.java @@ -27,7 +27,7 @@ abstract class AbstractTask implements Task { long nextAttemptTime; Throwable cause; - public AbstractTask(String name) { + protected AbstractTask(String name) { this.name = name; this.status = Status.Active; this.firstAttemptTime = NEVER; From 798a118fe5ed3db3491878e385b007b002417183 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:37:18 +0000 Subject: [PATCH 10/37] (chores): fix SonarCloud S5993 in camel-djl Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/component/djl/model/AbstractPredictor.java | 2 +- .../camel/component/djl/model/cv/AbstractCvZooPredictor.java | 2 +- .../camel/component/djl/model/nlp/AbstractNlpZooPredictor.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java index 9cc43f34a673e..3d0d45a3faefa 100644 --- a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java +++ b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java @@ -23,7 +23,7 @@ public abstract class AbstractPredictor { private final DJLEndpoint endpoint; - public AbstractPredictor(DJLEndpoint endpoint) { + protected AbstractPredictor(DJLEndpoint endpoint) { this.endpoint = endpoint; } diff --git a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/cv/AbstractCvZooPredictor.java b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/cv/AbstractCvZooPredictor.java index cfdef67084391..914ef40c76b7e 100644 --- a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/cv/AbstractCvZooPredictor.java +++ b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/cv/AbstractCvZooPredictor.java @@ -31,7 +31,7 @@ public abstract class AbstractCvZooPredictor extends AbstractPredictor { protected ZooModel model; - public AbstractCvZooPredictor(DJLEndpoint endpoint) { + protected AbstractCvZooPredictor(DJLEndpoint endpoint) { super(endpoint); } diff --git a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/nlp/AbstractNlpZooPredictor.java b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/nlp/AbstractNlpZooPredictor.java index 9feeae72ca98e..64d9cfdf35099 100644 --- a/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/nlp/AbstractNlpZooPredictor.java +++ b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/model/nlp/AbstractNlpZooPredictor.java @@ -29,7 +29,7 @@ public abstract class AbstractNlpZooPredictor extends AbstractPredictor { protected ZooModel model; - public AbstractNlpZooPredictor(DJLEndpoint endpoint) { + protected AbstractNlpZooPredictor(DJLEndpoint endpoint) { super(endpoint); } From b514d226f77c543376b9daaa1a0afdba6589c31d Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:37:31 +0000 Subject: [PATCH 11/37] (chores): fix SonarCloud S5993 in camel-as2-api Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../as2/api/exception/AS2ErrorDispositionException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/exception/AS2ErrorDispositionException.java b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/exception/AS2ErrorDispositionException.java index cf699988c5deb..b825378eadce6 100644 --- a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/exception/AS2ErrorDispositionException.java +++ b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/exception/AS2ErrorDispositionException.java @@ -21,11 +21,11 @@ abstract public class AS2ErrorDispositionException extends HttpException { - public AS2ErrorDispositionException(String message) { + protected AS2ErrorDispositionException(String message) { super(message); } - public AS2ErrorDispositionException(String message, Exception exception) { + protected AS2ErrorDispositionException(String message, Exception exception) { super(message, exception); } From 344af6c813a0907b60b3f6f43419188b5c96a848 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:37:43 +0000 Subject: [PATCH 12/37] (chores): fix SonarCloud S5993 in camel-aws2-timestream Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../component/aws2/timestream/Timestream2AbstractEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-aws/camel-aws2-timestream/src/main/java/org/apache/camel/component/aws2/timestream/Timestream2AbstractEndpoint.java b/components/camel-aws/camel-aws2-timestream/src/main/java/org/apache/camel/component/aws2/timestream/Timestream2AbstractEndpoint.java index 5d3c2d4d039bd..ec86d781bd74b 100644 --- a/components/camel-aws/camel-aws2-timestream/src/main/java/org/apache/camel/component/aws2/timestream/Timestream2AbstractEndpoint.java +++ b/components/camel-aws/camel-aws2-timestream/src/main/java/org/apache/camel/component/aws2/timestream/Timestream2AbstractEndpoint.java @@ -30,7 +30,7 @@ public abstract class Timestream2AbstractEndpoint extends DefaultEndpoint { @UriParam private Timestream2Configuration configuration; - public Timestream2AbstractEndpoint(String uri, Component component, Timestream2Configuration configuration) { + protected Timestream2AbstractEndpoint(String uri, Component component, Timestream2Configuration configuration) { super(uri, component); this.configuration = configuration; } From 520871604bbfb6bc9993e66304f7d076ea6c76fc Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:37:53 +0000 Subject: [PATCH 13/37] (chores): fix SonarCloud S5993 in camel-infinispan-common Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../component/infinispan/InfinispanAggregationRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-infinispan/camel-infinispan-common/src/main/java/org/apache/camel/component/infinispan/InfinispanAggregationRepository.java b/components/camel-infinispan/camel-infinispan-common/src/main/java/org/apache/camel/component/infinispan/InfinispanAggregationRepository.java index 5d6e783ec580d..e6d28227c1fd7 100644 --- a/components/camel-infinispan/camel-infinispan-common/src/main/java/org/apache/camel/component/infinispan/InfinispanAggregationRepository.java +++ b/components/camel-infinispan/camel-infinispan-common/src/main/java/org/apache/camel/component/infinispan/InfinispanAggregationRepository.java @@ -57,7 +57,7 @@ public abstract class InfinispanAggregationRepository description = "Whether headers on the Exchange that are Java objects and Serializable should be included and saved to the repository") private boolean allowSerializedHeaders; - public InfinispanAggregationRepository() { + protected InfinispanAggregationRepository() { } /** From 7036b4a370178f14f0ebddf86b04a42b7b1ffa97 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:38:04 +0000 Subject: [PATCH 14/37] (chores): fix SonarCloud S5993 in camel-oauth Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel-oauth/src/main/java/org/apache/camel/oauth/OAuth.java | 2 +- .../src/main/java/org/apache/camel/oauth/OAuthFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuth.java b/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuth.java index 93bc587a52fc9..a88f472c6b54b 100644 --- a/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuth.java +++ b/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuth.java @@ -46,7 +46,7 @@ public abstract class OAuth { protected OAuthConfig config; protected OAuthSessionStore sessionStore; - public OAuth() { + protected OAuth() { this.sessionStore = new InMemorySessionStore(); } diff --git a/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuthFactory.java b/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuthFactory.java index 50226cd30e7ce..0ccea1f9f7f99 100644 --- a/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuthFactory.java +++ b/components/camel-oauth/src/main/java/org/apache/camel/oauth/OAuthFactory.java @@ -28,7 +28,7 @@ public abstract class OAuthFactory { protected final CamelContext context; - public OAuthFactory(CamelContext context) { + protected OAuthFactory(CamelContext context) { this.context = context; } From 73550a0aa6a94fd9b42e50641f15245d273f77b0 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:38:21 +0000 Subject: [PATCH 15/37] (chores): fix SonarCloud S5993 in camel-salesforce-component Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../component/salesforce/api/dto/AbstractSObjectBase.java | 2 +- .../salesforce/internal/client/AbstractClientBase.java | 4 ++-- .../salesforce/internal/processor/AbstractRestProcessor.java | 2 +- .../internal/processor/AbstractSalesforceProcessor.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java index 39c763af1927b..651150b95c084 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java @@ -47,7 +47,7 @@ public abstract class AbstractSObjectBase extends AbstractDTOBase { private Set fieldsToNull = new HashSet<>(); - public AbstractSObjectBase() { + protected AbstractSObjectBase() { attributes = new Attributes(); } diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java index cb51374fc9d4e..546b6977385ed 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java @@ -92,8 +92,8 @@ public abstract class AbstractClientBase extends ServiceSupport private final long terminationTimeout; private final ObjectMapper objectMapper; - public AbstractClientBase(String version, SalesforceSession session, SalesforceHttpClient httpClient, - SalesforceLoginConfig loginConfig) { + protected AbstractClientBase(String version, SalesforceSession session, SalesforceHttpClient httpClient, + SalesforceLoginConfig loginConfig) { this(version, session, httpClient, loginConfig, DEFAULT_TERMINATION_TIMEOUT); } diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractRestProcessor.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractRestProcessor.java index 254ade8f7daa9..3158c2772ef52 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractRestProcessor.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractRestProcessor.java @@ -88,7 +88,7 @@ public abstract class AbstractRestProcessor extends AbstractSalesforceProcessor notFoundBehaviour = configuration.getNotFoundBehaviour(); } - public AbstractRestProcessor(SalesforceEndpoint endpoint) { + protected AbstractRestProcessor(SalesforceEndpoint endpoint) { super(endpoint); } diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractSalesforceProcessor.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractSalesforceProcessor.java index 238eaaa06848b..16f87779cb564 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractSalesforceProcessor.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/AbstractSalesforceProcessor.java @@ -57,7 +57,7 @@ public abstract class AbstractSalesforceProcessor extends ServiceSupport impleme protected boolean rawPayload; - public AbstractSalesforceProcessor(final SalesforceEndpoint endpoint) { + protected AbstractSalesforceProcessor(final SalesforceEndpoint endpoint) { this.endpoint = endpoint; this.operationName = endpoint.getOperationName(); this.endpointConfigMap = endpoint.getConfiguration().toValueMap(); From 7204e8c439bbec695af71ff795beae2a5f7556c0 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:38:32 +0000 Subject: [PATCH 16/37] (chores): fix SonarCloud S5993 in camel-servicenow-component Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/component/servicenow/AbstractServiceNowProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/AbstractServiceNowProducer.java b/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/AbstractServiceNowProducer.java index b82ee706cd98a..1ff6c4a694b84 100644 --- a/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/AbstractServiceNowProducer.java +++ b/components/camel-servicenow/camel-servicenow-component/src/main/java/org/apache/camel/component/servicenow/AbstractServiceNowProducer.java @@ -22,7 +22,7 @@ public abstract class AbstractServiceNowProducer extends HeaderSelectorProducer private final ServiceNowRelease release; private final ServiceNowEndpoint endpoint; - public AbstractServiceNowProducer(ServiceNowEndpoint endpoint, ServiceNowRelease release) { + protected AbstractServiceNowProducer(ServiceNowEndpoint endpoint, ServiceNowRelease release) { super(endpoint, ServiceNowConstants.RESOURCE, endpoint.getConfiguration().getResource()); this.release = release; From 93179b53530b1e665cf33739f703c789fd1fc9cc Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:38:43 +0000 Subject: [PATCH 17/37] (chores): fix SonarCloud S5993 in camel-sjms Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/component/sjms/reply/ReplyManagerSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/reply/ReplyManagerSupport.java b/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/reply/ReplyManagerSupport.java index 18b05d58fa04b..05f3dc06fb4f3 100644 --- a/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/reply/ReplyManagerSupport.java +++ b/components/camel-sjms/src/main/java/org/apache/camel/component/sjms/reply/ReplyManagerSupport.java @@ -60,7 +60,7 @@ public abstract class ReplyManagerSupport extends ServiceSupport implements Repl protected final long replyToTimeout = 10000; protected CorrelationTimeoutMap correlation; - public ReplyManagerSupport(CamelContext camelContext) { + protected ReplyManagerSupport(CamelContext camelContext) { this.camelContext = camelContext; } From 4aef21202e0fb41ef4b6f4033f889fd1a744101b Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:38:54 +0000 Subject: [PATCH 18/37] (chores): fix SonarCloud S5993 in camel-smpp Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/component/smpp/AbstractSmppCommand.java | 2 +- .../java/org/apache/camel/component/smpp/SmppSmCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/AbstractSmppCommand.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/AbstractSmppCommand.java index 36a75bafc9313..8974e33f186f8 100644 --- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/AbstractSmppCommand.java +++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/AbstractSmppCommand.java @@ -38,7 +38,7 @@ public abstract class AbstractSmppCommand implements SmppCommand { protected SMPPSession session; protected SmppConfiguration config; - public AbstractSmppCommand(SMPPSession session, SmppConfiguration config) { + protected AbstractSmppCommand(SMPPSession session, SmppConfiguration config) { this.session = session; this.config = config; } diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java index 97dcb6cb66a29..eef83dc371947 100644 --- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java +++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSmCommand.java @@ -37,7 +37,7 @@ public abstract class SmppSmCommand extends AbstractSmppCommand { private final Logger logger = LoggerFactory.getLogger(SmppSmCommand.class); - public SmppSmCommand(SMPPSession session, SmppConfiguration config) { + protected SmppSmCommand(SMPPSession session, SmppConfiguration config) { super(session, config); defaultCharset = Charset.forName(config.getEncoding()); } From fa4671b40ff8f14701f9d72548aa6ed16acbadfb Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:39:04 +0000 Subject: [PATCH 19/37] (chores): fix SonarCloud S5993 in camel-splunk Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/component/splunk/support/SplunkDataWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java index 36b8d28aaf280..f84585c4294b6 100644 --- a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java +++ b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java @@ -41,7 +41,7 @@ public abstract class SplunkDataWriter implements DataWriter { private Socket socket; protected final Lock lock = new ReentrantLock(); - public SplunkDataWriter(SplunkEndpoint endpoint, Args args) { + protected SplunkDataWriter(SplunkEndpoint endpoint, Args args) { this.endpoint = endpoint; this.args = args; } From ee597eb70678ad6edd20d469d99c515372f668e0 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:39:18 +0000 Subject: [PATCH 20/37] (chores): fix SonarCloud S5993 in camel-sql Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/component/sql/DefaultSqlEndpoint.java | 4 ++-- .../jdbc/AbstractJdbcMessageIdRepository.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/DefaultSqlEndpoint.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/DefaultSqlEndpoint.java index 93800859f9da6..c7f4d5beb6160 100644 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/DefaultSqlEndpoint.java +++ b/components/camel-sql/src/main/java/org/apache/camel/component/sql/DefaultSqlEndpoint.java @@ -142,10 +142,10 @@ public abstract class DefaultSqlEndpoint extends DefaultPollingEndpoint implemen description = "Factory for creating RowMapper") private RowMapperFactory rowMapperFactory; - public DefaultSqlEndpoint() { + protected DefaultSqlEndpoint() { } - public DefaultSqlEndpoint(String endpointUri, Component component) { + protected DefaultSqlEndpoint(String endpointUri, Component component) { super(endpointUri, component); } diff --git a/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java b/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java index 17eadaadaafca..f3755121d73b3 100644 --- a/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java +++ b/components/camel-sql/src/main/java/org/apache/camel/processor/idempotent/jdbc/AbstractJdbcMessageIdRepository.java @@ -63,23 +63,23 @@ public abstract class AbstractJdbcMessageIdRepository extends ServiceSupport imp protected TransactionTemplate transactionTemplate; protected DataSource dataSource; // not in use - public AbstractJdbcMessageIdRepository() { + protected AbstractJdbcMessageIdRepository() { } - public AbstractJdbcMessageIdRepository(JdbcTemplate jdbcTemplate, TransactionTemplate transactionTemplate) { + protected AbstractJdbcMessageIdRepository(JdbcTemplate jdbcTemplate, TransactionTemplate transactionTemplate) { this.jdbcTemplate = jdbcTemplate; this.transactionTemplate = transactionTemplate; } - public AbstractJdbcMessageIdRepository(DataSource dataSource, TransactionTemplate transactionTemplate, - String processorName) { + protected AbstractJdbcMessageIdRepository(DataSource dataSource, TransactionTemplate transactionTemplate, + String processorName) { this.jdbcTemplate = new JdbcTemplate(dataSource); this.jdbcTemplate.afterPropertiesSet(); this.processorName = processorName; this.transactionTemplate = transactionTemplate; } - public AbstractJdbcMessageIdRepository(DataSource dataSource, String processorName) { + protected AbstractJdbcMessageIdRepository(DataSource dataSource, String processorName) { this(dataSource, createTransactionTemplate(dataSource), processorName); } From ac29334c7fb34414ed71a05b87fc7b6f4b8aa041 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:39:31 +0000 Subject: [PATCH 21/37] (chores): fix SonarCloud S5993 in camel-telegram Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/component/telegram/model/InlineQueryResult.java | 4 ++-- .../camel/component/telegram/model/OutgoingMessage.java | 2 +- .../org/apache/camel/component/telegram/model/PaidMedia.java | 4 ++-- .../telegram/model/payments/RevenueWithdrawalState.java | 4 ++-- .../component/telegram/model/payments/TransactionPartner.java | 4 ++-- .../component/telegram/service/OutgoingMessageHandler.java | 4 ++-- .../component/telegram/service/TelegramMessageHandler.java | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineQueryResult.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineQueryResult.java index 5c85cc4ce6e1e..2454f75d77c31 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineQueryResult.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/InlineQueryResult.java @@ -33,10 +33,10 @@ public abstract class InlineQueryResult { @JsonProperty("reply_markup") private InlineKeyboardMarkup replyMarkup; - public InlineQueryResult() { + protected InlineQueryResult() { } - public InlineQueryResult(String type) { + protected InlineQueryResult(String type) { this.type = type; } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/OutgoingMessage.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/OutgoingMessage.java index 76f905d6f88b4..ca03520adac93 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/OutgoingMessage.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/OutgoingMessage.java @@ -39,7 +39,7 @@ public abstract class OutgoingMessage implements TelegramMessage { @JsonProperty("reply_to_message_id") protected Long replyToMessageId; - public OutgoingMessage() { + protected OutgoingMessage() { } public String getChatId() { diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/PaidMedia.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/PaidMedia.java index a9208394642aa..beb50d36470f9 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/PaidMedia.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/PaidMedia.java @@ -45,10 +45,10 @@ public abstract class PaidMedia implements Serializable { */ private String type; - public PaidMedia() { + protected PaidMedia() { } - public PaidMedia(String type) { + protected PaidMedia(String type) { this.type = type; } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/RevenueWithdrawalState.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/RevenueWithdrawalState.java index 819d067b6dd55..9ecb6dda9b616 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/RevenueWithdrawalState.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/RevenueWithdrawalState.java @@ -47,10 +47,10 @@ public abstract class RevenueWithdrawalState implements Serializable { */ private String type; - public RevenueWithdrawalState() { + protected RevenueWithdrawalState() { } - public RevenueWithdrawalState(String type) { + protected RevenueWithdrawalState(String type) { this.type = type; } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/TransactionPartner.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/TransactionPartner.java index 2dd0aae4150e2..bac6b8ce9fbb7 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/TransactionPartner.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/model/payments/TransactionPartner.java @@ -50,10 +50,10 @@ public abstract class TransactionPartner implements Serializable { */ private String type; - public TransactionPartner() { + protected TransactionPartner() { } - public TransactionPartner(String type) { + protected TransactionPartner(String type) { this.type = type; } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/OutgoingMessageHandler.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/OutgoingMessageHandler.java index 2daa1d77fbe1d..9829459055328 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/OutgoingMessageHandler.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/OutgoingMessageHandler.java @@ -22,8 +22,8 @@ abstract class OutgoingMessageHandler extends TelegramMessageHandler { - public OutgoingMessageHandler(TelegramApiClient apiClient, String uri, String contentType, - Class resultClass) { + protected OutgoingMessageHandler(TelegramApiClient apiClient, String uri, String contentType, + Class resultClass) { super(apiClient, uri, contentType, resultClass); } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramMessageHandler.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramMessageHandler.java index fea04895e7ff9..a2f9738ac25e8 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramMessageHandler.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramMessageHandler.java @@ -36,8 +36,8 @@ abstract class TelegramMessageHandler { private final String uri; private final Class resultClass; - public TelegramMessageHandler(TelegramApiClient apiClient, String uri, - String contentType, Class resultClass) { + protected TelegramMessageHandler(TelegramApiClient apiClient, String uri, + String contentType, Class resultClass) { this.apiClient = apiClient; this.mapper = apiClient.mapper(); this.uri = uri; From c853d86b9c42a47b04476a45a751cdc01922af95 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:39:41 +0000 Subject: [PATCH 22/37] (chores): fix SonarCloud S5993 in camel-twitter Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/component/twitter/AbstractTwitterEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/AbstractTwitterEndpoint.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/AbstractTwitterEndpoint.java index feeea486cf1cc..ec3709b27562e 100644 --- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/AbstractTwitterEndpoint.java +++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/AbstractTwitterEndpoint.java @@ -36,7 +36,7 @@ public abstract class AbstractTwitterEndpoint extends DefaultPollingEndpoint imp @UriParam private TwitterConfiguration properties; - public AbstractTwitterEndpoint(String uri, AbstractTwitterComponent component, TwitterConfiguration properties) { + protected AbstractTwitterEndpoint(String uri, AbstractTwitterComponent component, TwitterConfiguration properties) { super(uri, component); setDelay(DEFAULT_CONSUMER_DELAY); this.properties = properties; From dc985407f4e9a34d4c561ec9350a789b434b6a7a Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:39:52 +0000 Subject: [PATCH 23/37] (chores): fix SonarCloud S5993 in camel-whatsapp Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../whatsapp/service/WhatsAppServiceRestAPIAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/service/WhatsAppServiceRestAPIAdapter.java b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/service/WhatsAppServiceRestAPIAdapter.java index 0b4c73abecd92..895bb0bfb2493 100644 --- a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/service/WhatsAppServiceRestAPIAdapter.java +++ b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/service/WhatsAppServiceRestAPIAdapter.java @@ -172,8 +172,8 @@ abstract static class OutgoingMessageHandler { private final String uri; private final Class resultClass; - public OutgoingMessageHandler(HttpClient httpClient, ObjectMapper mapper, String uri, String contentType, - Class resultClass) { + protected OutgoingMessageHandler(HttpClient httpClient, ObjectMapper mapper, String uri, String contentType, + Class resultClass) { this.resultClass = resultClass; this.httpClient = httpClient; this.mapper = mapper; From 5eb886d5050efe642279d78359d17ae69cb550c1 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:40:03 +0000 Subject: [PATCH 24/37] (chores): fix SonarCloud S5993 in camel-wordpress Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/component/wordpress/api/model/Classifier.java | 2 +- .../wordpress/api/model/ClassifierSearchCriteria.java | 2 +- .../camel/component/wordpress/api/model/Publishable.java | 2 +- .../component/wordpress/api/model/TextPublishable.java | 2 +- .../wordpress/consumer/AbstractWordpressConsumer.java | 6 +++--- .../wordpress/producer/AbstractWordpressProducer.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Classifier.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Classifier.java index 9fdd428b60f69..2fbe7c9125ce8 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Classifier.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Classifier.java @@ -33,7 +33,7 @@ public abstract class Classifier { private String taxonomy; private List meta; - public Classifier() { + protected Classifier() { this.meta = new ArrayList<>(); } diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/ClassifierSearchCriteria.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/ClassifierSearchCriteria.java index e8088b665c548..1528ed8453f94 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/ClassifierSearchCriteria.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/ClassifierSearchCriteria.java @@ -25,7 +25,7 @@ public abstract class ClassifierSearchCriteria extends SearchCriteria { private String slug; private Context context; - public ClassifierSearchCriteria() { + protected ClassifierSearchCriteria() { } diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Publishable.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Publishable.java index 66f7a6f3fb8b9..d710600bc05ae 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Publishable.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/Publishable.java @@ -48,7 +48,7 @@ public abstract class Publishable implements Serializable { private String slug; - public Publishable() { + protected Publishable() { } diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/TextPublishable.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/TextPublishable.java index 7b5c2d2338c93..3f78c0c7d83ab 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/TextPublishable.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/api/model/TextPublishable.java @@ -58,7 +58,7 @@ public abstract class TextPublishable extends Publishable { @JsonProperty("featured_media") private Integer featuredMedia; - public TextPublishable() { + protected TextPublishable() { } diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/consumer/AbstractWordpressConsumer.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/consumer/AbstractWordpressConsumer.java index a52e52856cad1..5e214bb2a7028 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/consumer/AbstractWordpressConsumer.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/consumer/AbstractWordpressConsumer.java @@ -32,14 +32,14 @@ public abstract class AbstractWordpressConsumer extends ScheduledPollConsumer { private WordpressConfiguration configuration; - public AbstractWordpressConsumer(WordpressEndpoint endpoint, Processor processor) { + protected AbstractWordpressConsumer(WordpressEndpoint endpoint, Processor processor) { super(endpoint, processor); this.configuration = endpoint.getConfiguration(); this.initConsumer(); } - public AbstractWordpressConsumer(WordpressEndpoint endpoint, Processor processor, - ScheduledExecutorService scheduledExecutorService) { + protected AbstractWordpressConsumer(WordpressEndpoint endpoint, Processor processor, + ScheduledExecutorService scheduledExecutorService) { super(endpoint, processor, scheduledExecutorService); this.configuration = endpoint.getConfiguration(); this.initConsumer(); diff --git a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/producer/AbstractWordpressProducer.java b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/producer/AbstractWordpressProducer.java index a0b17241a399d..b378629309f55 100644 --- a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/producer/AbstractWordpressProducer.java +++ b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/producer/AbstractWordpressProducer.java @@ -30,7 +30,7 @@ public abstract class AbstractWordpressProducer extends DefaultProducer { private WordpressConfiguration configuration; - public AbstractWordpressProducer(WordpressEndpoint endpoint) { + protected AbstractWordpressProducer(WordpressEndpoint endpoint) { super(endpoint); this.configuration = endpoint.getConfiguration(); if (!WordpressServiceProvider.getInstance().hasAuthentication()) { From 183c4221542839507690def57987a03caed3406e Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:40:12 +0000 Subject: [PATCH 25/37] (chores): fix SonarCloud S5993 in camel-workday Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../component/workday/producer/WorkdayDefaultProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-workday/src/main/java/org/apache/camel/component/workday/producer/WorkdayDefaultProducer.java b/components/camel-workday/src/main/java/org/apache/camel/component/workday/producer/WorkdayDefaultProducer.java index b3ee6d692d5ca..d3ba6a0766783 100644 --- a/components/camel-workday/src/main/java/org/apache/camel/component/workday/producer/WorkdayDefaultProducer.java +++ b/components/camel-workday/src/main/java/org/apache/camel/component/workday/producer/WorkdayDefaultProducer.java @@ -44,7 +44,7 @@ public abstract class WorkdayDefaultProducer extends DefaultProducer { private final AuthenticationClient authenticationClient; - public WorkdayDefaultProducer(WorkdayEndpoint endpoint) { + protected WorkdayDefaultProducer(WorkdayEndpoint endpoint) { super(endpoint); this.endpoint = endpoint; this.authenticationClient = new AuthClientForIntegration(this.endpoint.getWorkdayConfiguration()); From fe0f789d4ee02ee498cf79e0d832c3d53472a522 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:40:25 +0000 Subject: [PATCH 26/37] (chores): fix SonarCloud S5993 in camel-xmlsecurity Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../xmlsecurity/processor/XmlSignatureConfiguration.java | 2 +- .../component/xmlsecurity/processor/XmlSignatureProcessor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureConfiguration.java index 217f9405212f3..8cfa07d33ce57 100644 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureConfiguration.java +++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureConfiguration.java @@ -49,7 +49,7 @@ public abstract class XmlSignatureConfiguration implements Cloneable { @UriParam(label = "advanced") private URIDereferencer uriDereferencer; - public XmlSignatureConfiguration() { + protected XmlSignatureConfiguration() { } public URIDereferencer getUriDereferencer() { diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java index d4cf695fda41a..ff733a2bff401 100644 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java +++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureProcessor.java @@ -57,7 +57,7 @@ public abstract class XmlSignatureProcessor implements Processor { protected final CamelContext context; - public XmlSignatureProcessor(CamelContext context) { + protected XmlSignatureProcessor(CamelContext context) { this.context = context; } From 499c13103b6fe5f40f44afe91318f8d3e1c36a9e Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:40:36 +0000 Subject: [PATCH 27/37] (chores): fix SonarCloud S5993 in camel-zeebe Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/component/zeebe/processor/AbstractBaseProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/processor/AbstractBaseProcessor.java b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/processor/AbstractBaseProcessor.java index e3911f92dd645..a8ee76f5b4d61 100644 --- a/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/processor/AbstractBaseProcessor.java +++ b/components/camel-zeebe/src/main/java/org/apache/camel/component/zeebe/processor/AbstractBaseProcessor.java @@ -29,7 +29,7 @@ public abstract class AbstractBaseProcessor extends BaseService implements Zeebe protected final ZeebeEndpoint endpoint; ObjectMapper objectMapper = new ObjectMapper(); - public AbstractBaseProcessor(ZeebeEndpoint endpoint) { + protected AbstractBaseProcessor(ZeebeEndpoint endpoint) { this.endpoint = endpoint; } From 93eeff64a70f441d492f39e08c470ee0a4e2f3e4 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:40:48 +0000 Subject: [PATCH 28/37] (chores): fix SonarCloud S5993 in camel-zookeeper Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../zookeeper/operations/FutureEventDrivenOperation.java | 2 +- .../component/zookeeper/operations/ZooKeeperOperation.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java index 7811a039402b4..771ca56279785 100644 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java +++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java @@ -42,7 +42,7 @@ public abstract class FutureEventDrivenOperation extends ZooKeeperOp private WatchedEvent event; - public FutureEventDrivenOperation(ZooKeeper connection, String node, EventType... awaitedTypes) { + protected FutureEventDrivenOperation(ZooKeeper connection, String node, EventType... awaitedTypes) { super(connection, node); this.awaitedTypes = awaitedTypes; } diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java index d3e0ebff6959f..ce06f5d410037 100644 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java +++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java @@ -48,11 +48,11 @@ public abstract class ZooKeeperOperation { private boolean cancelled; - public ZooKeeperOperation(ZooKeeper connection, String node) { + protected ZooKeeperOperation(ZooKeeper connection, String node) { this(connection, node, true); } - public ZooKeeperOperation(ZooKeeper connection, String node, boolean producesExchange) { + protected ZooKeeperOperation(ZooKeeper connection, String node, boolean producesExchange) { this.connection = connection; this.node = node; this.producesExchange = producesExchange; From 3d25a1862ca421f44ca26c68227240348c4776e2 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:41:49 +0000 Subject: [PATCH 29/37] (chores): fix SonarCloud S5993 in camel-endpointdsl Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../apache/camel/builder/endpoint/EndpointRouteBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/EndpointRouteBuilder.java b/dsl/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/EndpointRouteBuilder.java index 82dbc21809a01..8f9461a615cd0 100644 --- a/dsl/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/EndpointRouteBuilder.java +++ b/dsl/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/EndpointRouteBuilder.java @@ -30,10 +30,10 @@ */ public abstract class EndpointRouteBuilder extends RouteBuilder implements EndpointBuilderFactory { - public EndpointRouteBuilder() { + protected EndpointRouteBuilder() { } - public EndpointRouteBuilder(CamelContext context) { + protected EndpointRouteBuilder(CamelContext context) { super(context); } From 2089db91d8e37cee6748a6e38ea1728006d37d5c Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:42:11 +0000 Subject: [PATCH 30/37] (chores): fix SonarCloud S5993 in camel-jbang-core Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/dsl/jbang/core/commands/CamelCommand.java | 2 +- .../apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java | 2 +- .../camel/dsl/jbang/core/commands/action/ActionBaseCommand.java | 2 +- .../dsl/jbang/core/commands/action/ActionWatchCommand.java | 2 +- .../dsl/jbang/core/commands/action/CamelProcessorAction.java | 2 +- .../camel/dsl/jbang/core/commands/action/CamelRouteAction.java | 2 +- .../dsl/jbang/core/commands/catalog/CatalogBaseCommand.java | 2 +- .../camel/dsl/jbang/core/commands/infra/InfraBaseCommand.java | 2 +- .../camel/dsl/jbang/core/commands/plugin/PluginBaseCommand.java | 2 +- .../dsl/jbang/core/commands/process/ProcessBaseCommand.java | 2 +- .../dsl/jbang/core/commands/process/ProcessWatchCommand.java | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java index f1b9b1a4002ba..fdf0c4b635742 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java @@ -46,7 +46,7 @@ public abstract class CamelCommand implements Callable { @CommandLine.Option(names = { "-h", "--help" }, usageHelp = true, description = "Display the help and sub-commands") private boolean helpRequested = false; - public CamelCommand(CamelJBangMain main) { + protected CamelCommand(CamelJBangMain main) { this.main = main; } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java index 24ccf486aa70c..72573770a6bd2 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java @@ -308,7 +308,7 @@ public abstract class ExportBaseCommand extends CamelCommand { protected boolean javaLiveReload; // reload java codes in dev public String pomTemplateName; // support for specialised pom templates - public ExportBaseCommand(CamelJBangMain main) { + protected ExportBaseCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionBaseCommand.java index 266c6b8ca673f..b391178a9cdc8 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionBaseCommand.java @@ -34,7 +34,7 @@ abstract class ActionBaseCommand extends CamelCommand { - public ActionBaseCommand(CamelJBangMain main) { + protected ActionBaseCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionWatchCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionWatchCommand.java index ae1baebd033ab..976a356c2337f 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionWatchCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/ActionWatchCommand.java @@ -33,7 +33,7 @@ abstract class ActionWatchCommand extends ActionBaseCommand { private CommandHelper.ReadConsoleTask waitUserTask; - public ActionWatchCommand(CamelJBangMain main) { + protected ActionWatchCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelProcessorAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelProcessorAction.java index ac51a022b52eb..ac30cf311e905 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelProcessorAction.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelProcessorAction.java @@ -33,7 +33,7 @@ public abstract class CamelProcessorAction extends ActionBaseCommand { description = "Processor ids (multiple ids can be separated by comma)", defaultValue = "*") String id = "*"; - public CamelProcessorAction(CamelJBangMain main) { + protected CamelProcessorAction(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteAction.java index a4122151298d7..900c956bbfe05 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteAction.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteAction.java @@ -33,7 +33,7 @@ public abstract class CamelRouteAction extends ActionBaseCommand { description = "Route ids (multiple ids can be separated by comma)", defaultValue = "*") String id = "*"; - public CamelRouteAction(CamelJBangMain main) { + protected CamelRouteAction(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogBaseCommand.java index 9d84eccac3202..92acba5edae67 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogBaseCommand.java @@ -96,7 +96,7 @@ public abstract class CatalogBaseCommand extends CamelCommand { CamelCatalog catalog; - public CatalogBaseCommand(CamelJBangMain main) { + protected CatalogBaseCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/infra/InfraBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/infra/InfraBaseCommand.java index bcba428d72ea1..48e63d7a43bbd 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/infra/InfraBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/infra/InfraBaseCommand.java @@ -64,7 +64,7 @@ public abstract class InfraBaseCommand extends CamelCommand { description = "Output in JSON Format") boolean jsonOutput; - public InfraBaseCommand(CamelJBangMain main) { + protected InfraBaseCommand(CamelJBangMain main) { super(main); jsonMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/plugin/PluginBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/plugin/PluginBaseCommand.java index da4ed6c635b7a..ecdb433042d25 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/plugin/PluginBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/plugin/PluginBaseCommand.java @@ -28,7 +28,7 @@ */ abstract class PluginBaseCommand extends CamelCommand { - public PluginBaseCommand(CamelJBangMain main) { + protected PluginBaseCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessBaseCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessBaseCommand.java index 845d5c25d4694..92d8db2301e98 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessBaseCommand.java @@ -32,7 +32,7 @@ abstract class ProcessBaseCommand extends CamelCommand { - public ProcessBaseCommand(CamelJBangMain main) { + protected ProcessBaseCommand(CamelJBangMain main) { super(main); } diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessWatchCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessWatchCommand.java index ce37b306577cf..8fcc4ed4f0737 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessWatchCommand.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ProcessWatchCommand.java @@ -40,7 +40,7 @@ abstract class ProcessWatchCommand extends ProcessBaseCommand { private CommandHelper.ReadConsoleTask waitUserTask; - public ProcessWatchCommand(CamelJBangMain main) { + protected ProcessWatchCommand(CamelJBangMain main) { super(main); } From 96c6c962979eef2f3fc0ae03845e530413123ab5 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:42:25 +0000 Subject: [PATCH 31/37] (chores): fix SonarCloud S5993 in camel-jbang-plugin-kubernetes Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../jbang/core/commands/kubernetes/KubernetesBaseCommand.java | 2 +- .../dsl/jbang/core/commands/kubernetes/traits/BaseTrait.java | 4 ++-- .../commands/kubernetes/traits/knative/KnativeBaseTrait.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesBaseCommand.java b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesBaseCommand.java index 43eebadccc5da..53ababe8ed863 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesBaseCommand.java +++ b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesBaseCommand.java @@ -60,7 +60,7 @@ public abstract class KubernetesBaseCommand extends CamelCommand { List> projectNameSuppliers = new ArrayList<>(); - public KubernetesBaseCommand(CamelJBangMain main) { + protected KubernetesBaseCommand(CamelJBangMain main) { super(main); projectNameSuppliers.add(() -> name); } diff --git a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/BaseTrait.java b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/BaseTrait.java index 0846870dc3808..6f5ab92de406c 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/BaseTrait.java +++ b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/BaseTrait.java @@ -29,11 +29,11 @@ public abstract class BaseTrait implements Trait { private final String id; private final int order; - public BaseTrait(String id) { + protected BaseTrait(String id) { this(id, 1000); } - public BaseTrait(String id, int order) { + protected BaseTrait(String id, int order) { this.id = id; this.order = order; } diff --git a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/knative/KnativeBaseTrait.java b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/knative/KnativeBaseTrait.java index 83c230ec748b8..861642d80be6e 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/knative/KnativeBaseTrait.java +++ b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/knative/KnativeBaseTrait.java @@ -21,7 +21,7 @@ abstract class KnativeBaseTrait extends BaseTrait { - public KnativeBaseTrait(String id, int order) { + protected KnativeBaseTrait(String id, int order) { super(id, order); } From 4fa308c65c5516ce5eeca69d1a3cca7d995d5aa1 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:42:39 +0000 Subject: [PATCH 32/37] (chores): fix SonarCloud S5993 in camel-yaml-dsl Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../resources/schema/camelYamlDsl.json | 1574 ++++++++++++++--- .../yaml/YamlRoutesBuilderLoaderSupport.java | 2 +- 2 files changed, 1336 insertions(+), 240 deletions(-) diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json index 7ca5baed769af..ce29a4f4a41ff 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json @@ -3032,8 +3032,6 @@ "required" : [ "fory" ] }, { "required" : [ "grok" ] - }, { - "required" : [ "groovyJson" ] }, { "required" : [ "groovyXml" ] }, { @@ -3218,14 +3216,6 @@ "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GrokDataFormat" } } - }, { - "type" : "object", - "required" : [ "groovyJson" ], - "properties" : { - "groovyJson" : { - "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GroovyJSonDataFormat" - } - } }, { "type" : "object", "required" : [ "groovyXml" ], @@ -3524,7 +3514,6 @@ "flatpack" : { }, "fory" : { }, "grok" : { }, - "groovyJson" : { }, "groovyXml" : { }, "gzipDeflater" : { }, "hl7" : { }, @@ -6110,6 +6099,35 @@ } } ] }, + "org.apache.camel.model.SagaActionUriDefinition" : { + "oneOf" : [ { + "type" : "string" + }, { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string" + }, + "disabled" : { + "type" : "boolean" + }, + "id" : { + "type" : "string" + }, + "note" : { + "type" : "string" + }, + "parameters" : { + "type" : "object" + }, + "uri" : { + "type" : "string" + } + } + } ], + "required" : [ "uri" ] + }, "org.apache.camel.model.SagaDefinition" : { "title" : "Saga", "description" : "Enables Sagas on the route", @@ -6117,14 +6135,14 @@ "additionalProperties" : false, "properties" : { "compensation" : { - "type" : "string", "title" : "Compensation", - "description" : "The compensation endpoint URI that must be called to compensate all changes done in the route. The route corresponding to the compensation URI must perform compensation and complete without error. If errors occur during compensation, the saga service may call again the compensation URI to retry." + "description" : "The compensation endpoint URI that must be called to compensate all changes done in the route. The route corresponding to the compensation URI must perform compensation and complete without error. If errors occur during compensation, the saga service may call again the compensation URI to retry.", + "$ref" : "#/items/definitions/org.apache.camel.model.SagaActionUriDefinition" }, "completion" : { - "type" : "string", "title" : "Completion", - "description" : "The completion endpoint URI that will be called when the Saga is completed successfully. The route corresponding to the completion URI must perform completion tasks and terminate without error. If errors occur during completion, the saga service may call again the completion URI to retry." + "description" : "The completion endpoint URI that will be called when the Saga is completed successfully. The route corresponding to the completion URI must perform completion tasks and terminate without error. If errors occur during completion, the saga service may call again the completion URI to retry.", + "$ref" : "#/items/definitions/org.apache.camel.model.SagaActionUriDefinition" }, "completionMode" : { "type" : "string", @@ -8385,7 +8403,6 @@ "flatpack" : { }, "fory" : { }, "grok" : { }, - "groovyJson" : { }, "groovyXml" : { }, "gzipDeflater" : { }, "hl7" : { }, @@ -8461,8 +8478,6 @@ "required" : [ "fory" ] }, { "required" : [ "grok" ] - }, { - "required" : [ "groovyJson" ] }, { "required" : [ "groovyXml" ] }, { @@ -8647,14 +8662,6 @@ "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GrokDataFormat" } } - }, { - "type" : "object", - "required" : [ "groovyJson" ], - "properties" : { - "groovyJson" : { - "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GroovyJSonDataFormat" - } - } }, { "type" : "object", "required" : [ "groovyXml" ], @@ -9192,244 +9199,1376 @@ "expression" : { } } }, - "org.apache.camel.model.WireTapDefinition" : { - "title" : "Wire Tap", - "description" : "Routes a copy of a message (or creates a new message) to a secondary destination while continue routing the original message.", + "org.apache.camel.model.WireTapDefinition" : { + "title" : "Wire Tap", + "description" : "Routes a copy of a message (or creates a new message) to a secondary destination while continue routing the original message.", + "type" : "object", + "additionalProperties" : false, + "properties" : { + "allowOptimisedComponents" : { + "type" : "boolean", + "title" : "Allow Optimised Components", + "description" : "Whether to allow components to optimise toD if they are org.apache.camel.spi.SendDynamicAware .", + "default" : true + }, + "autoStartComponents" : { + "type" : "boolean", + "title" : "Auto Start Components", + "description" : "Whether to auto startup components when toD is starting up.", + "default" : true + }, + "cacheSize" : { + "type" : "number", + "title" : "Cache Size", + "description" : "Sets the maximum size used by the org.apache.camel.spi.ProducerCache which is used to cache and reuse producers when using this recipient list, when uris are reused. Beware that when using dynamic endpoints then it affects how well the cache can be utilized. If each dynamic endpoint is unique then its best to turn off caching by setting this to -1, which allows Camel to not cache both the producers and endpoints; they are regarded as prototype scoped and will be stopped and discarded after use. This reduces memory usage as otherwise producers/endpoints are stored in memory in the caches. However if there are a high degree of dynamic endpoints that have been used before, then it can benefit to use the cache to reuse both producers and endpoints and therefore the cache size can be set accordingly or rely on the default size (1000). If there is a mix of unique and used before dynamic endpoints, then setting a reasonable cache size can help reduce memory usage to avoid storing too many non frequent used producers." + }, + "copy" : { + "type" : "boolean", + "title" : "Copy", + "description" : "Uses a copy of the original exchange", + "default" : true + }, + "description" : { + "type" : "string", + "title" : "Description", + "description" : "Sets the description of this node" + }, + "disabled" : { + "type" : "boolean", + "title" : "Disabled", + "description" : "Disables this EIP from the route.", + "default" : false + }, + "dynamicUri" : { + "type" : "boolean", + "title" : "Dynamic Uri", + "description" : "Whether the uri is dynamic or static. If the uri is dynamic then the simple language is used to evaluate a dynamic uri to use as the wire-tap destination, for each incoming message. This works similar to how the toD EIP pattern works. If static then the uri is used as-is as the wire-tap destination.", + "default" : true + }, + "executorService" : { + "type" : "string", + "title" : "Executor Service", + "description" : "Uses a custom thread pool" + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "Sets the id of this node" + }, + "ignoreInvalidEndpoint" : { + "type" : "boolean", + "title" : "Ignore Invalid Endpoint", + "description" : "Whether to ignore invalid endpoint URIs and skip sending the message.", + "default" : false + }, + "note" : { + "type" : "string", + "title" : "Note", + "description" : "Sets the note of this node" + }, + "onPrepare" : { + "type" : "string", + "title" : "On Prepare", + "description" : "Uses the Processor when preparing the org.apache.camel.Exchange to be sent. This can be used to deep-clone messages that should be sent, or any custom logic needed before the exchange is sent." + }, + "parameters" : { + "type" : "object" + }, + "uri" : { + "type" : "string", + "title" : "Uri", + "description" : "The uri of the endpoint to send to. The uri can be dynamic computed using the org.apache.camel.language.simple.SimpleLanguage expression." + }, + "variableReceive" : { + "type" : "string", + "title" : "Variable Receive", + "description" : "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is taken from this variable instead of the current Message , however the headers from the Message will still be used as well. In other words, the variable is used instead of the message body, but everything else is as usual." + }, + "variableSend" : { + "type" : "string", + "title" : "Variable Send", + "description" : "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is taken from this variable instead of the current message, however the headers from the message will still be used as well. In other words, the variable is used instead of the message body, but everything else is as usual." + } + }, + "required" : [ "uri" ] + }, + "org.apache.camel.model.app.BeanConstructorDefinition" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "index" : { + "type" : "number" + }, + "value" : { + "type" : "string" + } + }, + "required" : [ "value" ] + }, + "org.apache.camel.model.app.BeanConstructorsDefinition" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "constructor" : { + "type" : "array", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanConstructorDefinition" + } + } + } + }, + "org.apache.camel.model.app.BeanPropertiesDefinition" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "property" : { + "type" : "array", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanPropertyDefinition" + } + } + } + }, + "org.apache.camel.model.app.BeanPropertyDefinition" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "key" : { + "type" : "string" + }, + "properties" : { + "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanPropertiesDefinition" + }, + "value" : { + "type" : "string" + } + } + }, + "org.apache.camel.model.app.ComponentScanDefinition" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "basePackage" : { + "type" : "string" + } + } + }, + "org.apache.camel.model.cloud.BlacklistServiceCallServiceFilterConfiguration" : { + "title" : "Blacklist Service Filter", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "servers" : { + "type" : "array", + "title" : "Servers", + "description" : "Sets the server blacklist. Each entry can be a list of servers separated by comma in the format: servicehost:port,servicehost2:port,servicehost3:port", + "items" : { + "type" : "string" + } + } + } + }, + "org.apache.camel.model.cloud.CachingServiceCallServiceDiscoveryConfiguration" : { + "title" : "Caching Service Discovery", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "anyOf" : [ { + "oneOf" : [ { + "type" : "object", + "required" : [ "combinedServiceDiscovery" ], + "properties" : { + "combinedServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CombinedServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "combinedServiceDiscovery" ] + }, { + "required" : [ "consulServiceDiscovery" ] + }, { + "required" : [ "dnsServiceDiscovery" ] + }, { + "required" : [ "kubernetesServiceDiscovery" ] + }, { + "required" : [ "staticServiceDiscovery" ] + } ] + } + }, { + "type" : "object", + "required" : [ "consulServiceDiscovery" ], + "properties" : { + "consulServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "dnsServiceDiscovery" ], + "properties" : { + "dnsServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "kubernetesServiceDiscovery" ], + "properties" : { + "kubernetesServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "staticServiceDiscovery" ], + "properties" : { + "staticServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration" + } + } + } ] + } ], + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "timeout" : { + "type" : "number", + "title" : "Timeout", + "description" : "Set the time the services will be retained.", + "default" : 60 + }, + "units" : { + "type" : "string", + "title" : "Units", + "description" : "Set the time unit for the timeout.", + "default" : "SECONDS", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] + }, + "combinedServiceDiscovery" : { }, + "consulServiceDiscovery" : { }, + "dnsServiceDiscovery" : { }, + "kubernetesServiceDiscovery" : { }, + "staticServiceDiscovery" : { } + } + }, + "org.apache.camel.model.cloud.CombinedServiceCallServiceDiscoveryConfiguration" : { + "title" : "Combined Service Discovery", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "cachingServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CachingServiceCallServiceDiscoveryConfiguration" + }, + "consulServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration" + }, + "dnsServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration" + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "kubernetesServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "staticServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration" + } + } + }, + "org.apache.camel.model.cloud.CombinedServiceCallServiceFilterConfiguration" : { + "title" : "Combined Service Filter", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "blacklistServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.BlacklistServiceCallServiceFilterConfiguration" + }, + "customServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CustomServiceCallServiceFilterConfiguration" + }, + "healthyServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.HealthyServiceCallServiceFilterConfiguration" + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "passThroughServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + } + } + }, + "org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration" : { + "title" : "Consul Service Discovery", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "aclToken" : { + "type" : "string", + "title" : "Acl Token", + "description" : "Sets the ACL token to be used with Consul" + }, + "blockSeconds" : { + "type" : "number", + "title" : "Block Seconds", + "description" : "The seconds to wait for a watch event, default 10 seconds", + "default" : 10 + }, + "connectTimeoutMillis" : { + "type" : "number", + "title" : "Connect Timeout Millis", + "description" : "Connect timeout for OkHttpClient" + }, + "datacenter" : { + "type" : "string", + "title" : "Datacenter", + "description" : "The data center" + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "password" : { + "type" : "string", + "title" : "Password", + "description" : "Sets the password to be used for basic authentication" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "readTimeoutMillis" : { + "type" : "number", + "title" : "Read Timeout Millis", + "description" : "Read timeout for OkHttpClient" + }, + "url" : { + "type" : "string", + "title" : "Url", + "description" : "The Consul agent URL" + }, + "userName" : { + "type" : "string", + "title" : "User Name", + "description" : "Sets the username to be used for basic authentication" + }, + "writeTimeoutMillis" : { + "type" : "number", + "title" : "Write Timeout Millis", + "description" : "Write timeout for OkHttpClient" + } + } + }, + "org.apache.camel.model.cloud.CustomServiceCallServiceFilterConfiguration" : { + "title" : "Custom Service Filter", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "ref" : { + "type" : "string", + "title" : "Ref", + "description" : "Reference of a ServiceFilter" + } + } + }, + "org.apache.camel.model.cloud.DefaultServiceCallServiceLoadBalancerConfiguration" : { + "title" : "Default Load Balancer", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + } + } + }, + "org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration" : { + "title" : "Dns Service Discovery", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "domain" : { + "type" : "string", + "title" : "Domain", + "description" : "The domain name;" + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "proto" : { + "type" : "string", + "title" : "Proto", + "description" : "The transport protocol of the desired service.", + "default" : "_tcp" + } + } + }, + "org.apache.camel.model.cloud.HealthyServiceCallServiceFilterConfiguration" : { + "title" : "Healthy Service Filter", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + } + } + }, + "org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration" : { + "title" : "Kubernetes Service Discovery", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "apiVersion" : { + "type" : "string", + "title" : "Api Version", + "description" : "Sets the API version when using client lookup" + }, + "caCertData" : { + "type" : "string", + "title" : "Ca Cert Data", + "description" : "Sets the Certificate Authority data when using client lookup" + }, + "caCertFile" : { + "type" : "string", + "title" : "Ca Cert File", + "description" : "Sets the Certificate Authority data that are loaded from the file when using client lookup" + }, + "clientCertData" : { + "type" : "string", + "title" : "Client Cert Data", + "description" : "Sets the Client Certificate data when using client lookup" + }, + "clientCertFile" : { + "type" : "string", + "title" : "Client Cert File", + "description" : "Sets the Client Certificate data that are loaded from the file when using client lookup" + }, + "clientKeyAlgo" : { + "type" : "string", + "title" : "Client Key Algo", + "description" : "Sets the Client Keystore algorithm, such as RSA when using client lookup" + }, + "clientKeyData" : { + "type" : "string", + "title" : "Client Key Data", + "description" : "Sets the Client Keystore data when using client lookup" + }, + "clientKeyFile" : { + "type" : "string", + "title" : "Client Key File", + "description" : "Sets the Client Keystore data that are loaded from the file when using client lookup" + }, + "clientKeyPassphrase" : { + "type" : "string", + "title" : "Client Key Passphrase", + "description" : "Sets the Client Keystore passphrase when using client lookup" + }, + "dnsDomain" : { + "type" : "string", + "title" : "Dns Domain", + "description" : "Sets the DNS domain to use for DNS lookup." + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "lookup" : { + "type" : "string", + "title" : "Lookup", + "description" : "How to perform service lookup. Possible values: client, dns, environment. When using client, then the client queries the kubernetes master to obtain a list of active pods that provides the service, and then random (or round robin) select a pod. When using dns the service name is resolved as name.namespace.svc.dnsDomain. When using dnssrv the service name is resolved with SRV query for _._...svc... When using environment then environment variables are used to lookup the service. By default environment is used.", + "default" : "environment", + "enum" : [ "environment", "dns", "client" ] + }, + "masterUrl" : { + "type" : "string", + "title" : "Master Url", + "description" : "Sets the URL to the master when using client lookup" + }, + "namespace" : { + "type" : "string", + "title" : "Namespace", + "description" : "Sets the namespace to use. Will by default use namespace from the ENV variable KUBERNETES_MASTER." + }, + "oauthToken" : { + "type" : "string", + "title" : "Oauth Token", + "description" : "Sets the OAUTH token for authentication (instead of username/password) when using client lookup" + }, + "password" : { + "type" : "string", + "title" : "Password", + "description" : "Sets the password for authentication when using client lookup" + }, + "portName" : { + "type" : "string", + "title" : "Port Name", + "description" : "Sets the Port Name to use for DNS/DNSSRV lookup." + }, + "portProtocol" : { + "type" : "string", + "title" : "Port Protocol", + "description" : "Sets the Port Protocol to use for DNS/DNSSRV lookup." + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "trustCerts" : { + "type" : "boolean", + "title" : "Trust Certs", + "description" : "Sets whether to turn on trust certificate check when using client lookup", + "default" : false + }, + "username" : { + "type" : "string", + "title" : "Username", + "description" : "Sets the username for authentication when using client lookup" + } + } + }, + "org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" : { + "title" : "Pass Through Service Filter", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + } + } + }, + "org.apache.camel.model.cloud.ServiceCallConfigurationDefinition" : { + "title" : "Service Call Configuration", + "description" : "Remote service call configuration", + "deprecated" : true, + "type" : "object", + "additionalProperties" : false, + "anyOf" : [ { + "oneOf" : [ { + "type" : "object", + "required" : [ "blacklistServiceFilter" ], + "properties" : { + "blacklistServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.BlacklistServiceCallServiceFilterConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "blacklistServiceFilter" ] + }, { + "required" : [ "combinedServiceFilter" ] + }, { + "required" : [ "customServiceFilter" ] + }, { + "required" : [ "healthyServiceFilter" ] + }, { + "required" : [ "passThroughServiceFilter" ] + } ] + } + }, { + "type" : "object", + "required" : [ "combinedServiceFilter" ], + "properties" : { + "combinedServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CombinedServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "customServiceFilter" ], + "properties" : { + "customServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CustomServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "healthyServiceFilter" ], + "properties" : { + "healthyServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.HealthyServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "passThroughServiceFilter" ], + "properties" : { + "passThroughServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" + } + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "cachingServiceDiscovery" ], + "properties" : { + "cachingServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CachingServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "cachingServiceDiscovery" ] + }, { + "required" : [ "combinedServiceDiscovery" ] + }, { + "required" : [ "consulServiceDiscovery" ] + }, { + "required" : [ "dnsServiceDiscovery" ] + }, { + "required" : [ "kubernetesServiceDiscovery" ] + }, { + "required" : [ "staticServiceDiscovery" ] + }, { + "required" : [ "zookeeperServiceDiscovery" ] + } ] + } + }, { + "type" : "object", + "required" : [ "combinedServiceDiscovery" ], + "properties" : { + "combinedServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CombinedServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "consulServiceDiscovery" ], + "properties" : { + "consulServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "dnsServiceDiscovery" ], + "properties" : { + "dnsServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "kubernetesServiceDiscovery" ], + "properties" : { + "kubernetesServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "staticServiceDiscovery" ], + "properties" : { + "staticServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "zookeeperServiceDiscovery" ], + "properties" : { + "zookeeperServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ZooKeeperServiceCallServiceDiscoveryConfiguration" + } + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "defaultLoadBalancer" ], + "properties" : { + "defaultLoadBalancer" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DefaultServiceCallServiceLoadBalancerConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "defaultLoadBalancer" ] + } ] + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "expression" ], + "properties" : { + "expression" : { + "title" : "Expression", + "description" : "Configures the Expression using the given configuration.", + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ServiceCallExpressionConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "expression" ] + } ] + } + } ] + } ], + "properties" : { + "component" : { + "type" : "string", + "title" : "Component", + "description" : "The component to use.", + "default" : "http" + }, + "expressionRef" : { + "type" : "string", + "title" : "Expression Ref", + "description" : "Set a reference to a custom Expression to use." + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "loadBalancerRef" : { + "type" : "string", + "title" : "Load Balancer Ref", + "description" : "Sets a reference to a custom ServiceLoadBalancer to use." + }, + "pattern" : { + "type" : "string", + "title" : "Pattern", + "description" : "Sets the optional ExchangePattern used to invoke this endpoint", + "enum" : [ "InOnly", "InOut" ] + }, + "serviceChooserRef" : { + "type" : "string", + "title" : "Service Chooser Ref", + "description" : "Sets a reference to a custom ServiceChooser to use." + }, + "serviceDiscoveryRef" : { + "type" : "string", + "title" : "Service Discovery Ref", + "description" : "Sets a reference to a custom ServiceDiscovery to use." + }, + "serviceFilterRef" : { + "type" : "string", + "title" : "Service Filter Ref", + "description" : "Sets a reference to a custom ServiceFilter to use." + }, + "uri" : { + "type" : "string", + "title" : "Uri", + "description" : "The uri of the endpoint to send to. The uri can be dynamic computed using the simple language expression." + }, + "blacklistServiceFilter" : { }, + "combinedServiceFilter" : { }, + "customServiceFilter" : { }, + "healthyServiceFilter" : { }, + "passThroughServiceFilter" : { }, + "cachingServiceDiscovery" : { }, + "combinedServiceDiscovery" : { }, + "consulServiceDiscovery" : { }, + "dnsServiceDiscovery" : { }, + "kubernetesServiceDiscovery" : { }, + "staticServiceDiscovery" : { }, + "zookeeperServiceDiscovery" : { }, + "defaultLoadBalancer" : { }, + "expression" : { } + } + }, + "org.apache.camel.model.cloud.ServiceCallDefinition" : { + "title" : "Service Call", + "description" : "To call remote services", + "deprecated" : true, + "oneOf" : [ { + "type" : "string" + }, { + "type" : "object", + "additionalProperties" : false, + "anyOf" : [ { + "oneOf" : [ { + "type" : "object", + "required" : [ "blacklistServiceFilter" ], + "properties" : { + "blacklistServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.BlacklistServiceCallServiceFilterConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "blacklistServiceFilter" ] + }, { + "required" : [ "combinedServiceFilter" ] + }, { + "required" : [ "customServiceFilter" ] + }, { + "required" : [ "healthyServiceFilter" ] + }, { + "required" : [ "passThroughServiceFilter" ] + } ] + } + }, { + "type" : "object", + "required" : [ "combinedServiceFilter" ], + "properties" : { + "combinedServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CombinedServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "customServiceFilter" ], + "properties" : { + "customServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CustomServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "healthyServiceFilter" ], + "properties" : { + "healthyServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.HealthyServiceCallServiceFilterConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "passThroughServiceFilter" ], + "properties" : { + "passThroughServiceFilter" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" + } + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "cachingServiceDiscovery" ], + "properties" : { + "cachingServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CachingServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "cachingServiceDiscovery" ] + }, { + "required" : [ "combinedServiceDiscovery" ] + }, { + "required" : [ "consulServiceDiscovery" ] + }, { + "required" : [ "dnsServiceDiscovery" ] + }, { + "required" : [ "kubernetesServiceDiscovery" ] + }, { + "required" : [ "staticServiceDiscovery" ] + }, { + "required" : [ "zookeeperServiceDiscovery" ] + } ] + } + }, { + "type" : "object", + "required" : [ "combinedServiceDiscovery" ], + "properties" : { + "combinedServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.CombinedServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "consulServiceDiscovery" ], + "properties" : { + "consulServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "dnsServiceDiscovery" ], + "properties" : { + "dnsServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "kubernetesServiceDiscovery" ], + "properties" : { + "kubernetesServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "staticServiceDiscovery" ], + "properties" : { + "staticServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration" + } + } + }, { + "type" : "object", + "required" : [ "zookeeperServiceDiscovery" ], + "properties" : { + "zookeeperServiceDiscovery" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ZooKeeperServiceCallServiceDiscoveryConfiguration" + } + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "defaultLoadBalancer" ], + "properties" : { + "defaultLoadBalancer" : { + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.DefaultServiceCallServiceLoadBalancerConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "defaultLoadBalancer" ] + } ] + } + } ] + }, { + "oneOf" : [ { + "type" : "object", + "required" : [ "expression" ], + "properties" : { + "expression" : { + "title" : "Expression", + "description" : "Configures the Expression using the given configuration.", + "$ref" : "#/items/definitions/org.apache.camel.model.cloud.ServiceCallExpressionConfiguration" + } + } + }, { + "not" : { + "anyOf" : [ { + "required" : [ "expression" ] + } ] + } + } ] + } ], + "properties" : { + "component" : { + "type" : "string", + "title" : "Component", + "description" : "The component to use.", + "default" : "http" + }, + "configurationRef" : { + "type" : "string", + "title" : "Configuration Ref", + "description" : "Refers to a ServiceCall configuration to use" + }, + "description" : { + "type" : "string", + "title" : "Description", + "description" : "Sets the description of this node" + }, + "disabled" : { + "type" : "boolean", + "title" : "Disabled", + "description" : "Disables this EIP from the route.", + "default" : false + }, + "expressionRef" : { + "type" : "string", + "title" : "Expression Ref", + "description" : "Set a reference to a custom Expression to use." + }, + "id" : { + "type" : "string", + "title" : "Id", + "description" : "Sets the id of this node" + }, + "loadBalancerRef" : { + "type" : "string", + "title" : "Load Balancer Ref", + "description" : "Sets a reference to a custom ServiceLoadBalancer to use." + }, + "name" : { + "type" : "string", + "title" : "Name", + "description" : "Sets the name of the service to use" + }, + "note" : { + "type" : "string", + "title" : "Note", + "description" : "Sets the note of this node" + }, + "pattern" : { + "type" : "string", + "title" : "Pattern", + "description" : "Sets the optional ExchangePattern used to invoke this endpoint", + "enum" : [ "InOnly", "InOut" ] + }, + "serviceChooserRef" : { + "type" : "string", + "title" : "Service Chooser Ref", + "description" : "Sets a reference to a custom ServiceChooser to use." + }, + "serviceDiscoveryRef" : { + "type" : "string", + "title" : "Service Discovery Ref", + "description" : "Sets a reference to a custom ServiceDiscovery to use." + }, + "serviceFilterRef" : { + "type" : "string", + "title" : "Service Filter Ref", + "description" : "Sets a reference to a custom ServiceFilter to use." + }, + "uri" : { + "type" : "string", + "title" : "Uri", + "description" : "The uri of the endpoint to send to. The uri can be dynamic computed using the org.apache.camel.language.simple.SimpleLanguage expression." + }, + "blacklistServiceFilter" : { }, + "combinedServiceFilter" : { }, + "customServiceFilter" : { }, + "healthyServiceFilter" : { }, + "passThroughServiceFilter" : { }, + "cachingServiceDiscovery" : { }, + "combinedServiceDiscovery" : { }, + "consulServiceDiscovery" : { }, + "dnsServiceDiscovery" : { }, + "kubernetesServiceDiscovery" : { }, + "staticServiceDiscovery" : { }, + "zookeeperServiceDiscovery" : { }, + "defaultLoadBalancer" : { }, + "expression" : { } + } + } ], + "required" : [ "name" ] + }, + "org.apache.camel.model.cloud.ServiceCallExpressionConfiguration" : { + "title" : "Service Expression", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "allowOptimisedComponents" : { - "type" : "boolean", - "title" : "Allow Optimised Components", - "description" : "Whether to allow components to optimise toD if they are org.apache.camel.spi.SendDynamicAware .", - "default" : true - }, - "autoStartComponents" : { - "type" : "boolean", - "title" : "Auto Start Components", - "description" : "Whether to auto startup components when toD is starting up.", - "default" : true - }, - "cacheSize" : { - "type" : "number", - "title" : "Cache Size", - "description" : "Sets the maximum size used by the org.apache.camel.spi.ProducerCache which is used to cache and reuse producers when using this recipient list, when uris are reused. Beware that when using dynamic endpoints then it affects how well the cache can be utilized. If each dynamic endpoint is unique then its best to turn off caching by setting this to -1, which allows Camel to not cache both the producers and endpoints; they are regarded as prototype scoped and will be stopped and discarded after use. This reduces memory usage as otherwise producers/endpoints are stored in memory in the caches. However if there are a high degree of dynamic endpoints that have been used before, then it can benefit to use the cache to reuse both producers and endpoints and therefore the cache size can be set accordingly or rely on the default size (1000). If there is a mix of unique and used before dynamic endpoints, then setting a reasonable cache size can help reduce memory usage to avoid storing too many non frequent used producers." - }, - "copy" : { - "type" : "boolean", - "title" : "Copy", - "description" : "Uses a copy of the original exchange", - "default" : true - }, - "description" : { - "type" : "string", - "title" : "Description", - "description" : "Sets the description of this node" - }, - "disabled" : { - "type" : "boolean", - "title" : "Disabled", - "description" : "Disables this EIP from the route.", - "default" : false - }, - "dynamicUri" : { - "type" : "boolean", - "title" : "Dynamic Uri", - "description" : "Whether the uri is dynamic or static. If the uri is dynamic then the simple language is used to evaluate a dynamic uri to use as the wire-tap destination, for each incoming message. This works similar to how the toD EIP pattern works. If static then the uri is used as-is as the wire-tap destination.", - "default" : true + "expressionType" : { + "$ref" : "#/items/definitions/org.apache.camel.model.language.ExpressionDefinition" }, - "executorService" : { + "hostHeader" : { "type" : "string", - "title" : "Executor Service", - "description" : "Uses a custom thread pool" + "title" : "Host Header", + "description" : "The header that holds the service host information, default ServiceCallConstants.SERVICE_HOST", + "default" : "CamelServiceCallServiceHost" }, "id" : { "type" : "string", "title" : "Id", - "description" : "Sets the id of this node" - }, - "ignoreInvalidEndpoint" : { - "type" : "boolean", - "title" : "Ignore Invalid Endpoint", - "description" : "Whether to ignore invalid endpoint URIs and skip sending the message.", - "default" : false - }, - "note" : { - "type" : "string", - "title" : "Note", - "description" : "Sets the note of this node" - }, - "onPrepare" : { - "type" : "string", - "title" : "On Prepare", - "description" : "Uses the Processor when preparing the org.apache.camel.Exchange to be sent. This can be used to deep-clone messages that should be sent, or any custom logic needed before the exchange is sent." - }, - "parameters" : { - "type" : "object" - }, - "uri" : { - "type" : "string", - "title" : "Uri", - "description" : "The uri of the endpoint to send to. The uri can be dynamic computed using the org.apache.camel.language.simple.SimpleLanguage expression." + "description" : "The id of this node" }, - "variableReceive" : { + "portHeader" : { "type" : "string", - "title" : "Variable Receive", - "description" : "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is taken from this variable instead of the current Message , however the headers from the Message will still be used as well. In other words, the variable is used instead of the message body, but everything else is as usual." + "title" : "Port Header", + "description" : "The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT", + "default" : "CamelServiceCallServicePort" }, - "variableSend" : { - "type" : "string", - "title" : "Variable Send", - "description" : "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is taken from this variable instead of the current message, however the headers from the message will still be used as well. In other words, the variable is used instead of the message body, but everything else is as usual." + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } } - }, - "required" : [ "uri" ] + } }, - "org.apache.camel.model.app.BeanConstructorDefinition" : { + "org.apache.camel.model.cloud.ServiceCallServiceChooserConfiguration" : { + "title" : "Service Chooser Configuration", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "index" : { - "type" : "number" + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" }, - "value" : { - "type" : "string" + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } } - }, - "required" : [ "value" ] + } }, - "org.apache.camel.model.app.BeanConstructorsDefinition" : { + "org.apache.camel.model.cloud.ServiceCallServiceDiscoveryConfiguration" : { + "title" : "Service Discovery Configuration", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "constructor" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", "items" : { - "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanConstructorDefinition" + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" } } } }, - "org.apache.camel.model.app.BeanPropertiesDefinition" : { + "org.apache.camel.model.cloud.ServiceCallServiceFilterConfiguration" : { + "title" : "Service Filter Configuration", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "property" : { + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", "items" : { - "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanPropertyDefinition" + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" } } } }, - "org.apache.camel.model.app.BeanPropertyDefinition" : { + "org.apache.camel.model.cloud.ServiceCallServiceLoadBalancerConfiguration" : { + "title" : "Load Balancer Configuration", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "key" : { - "type" : "string" + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" }, "properties" : { - "$ref" : "#/items/definitions/org.apache.camel.model.app.BeanPropertiesDefinition" - }, - "value" : { - "type" : "string" + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } } } }, - "org.apache.camel.model.app.ComponentScanDefinition" : { + "org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration" : { + "title" : "Static Service Discovery", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "basePackage" : { - "type" : "string" + "id" : { + "type" : "string", + "title" : "Id", + "description" : "The id of this node" + }, + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } + }, + "servers" : { + "type" : "array", + "title" : "Servers", + "description" : "Sets the server list. Each entry can be a list of servers separated by comma in the format: servicehost:port,servicehost2:port,servicehost3:port", + "items" : { + "type" : "string" + } } } }, - "org.apache.camel.model.app.SSLContextParametersDefinition" : { + "org.apache.camel.model.cloud.ZooKeeperServiceCallServiceDiscoveryConfiguration" : { + "title" : "Zookeeper Service Discovery", + "deprecated" : true, "type" : "object", "additionalProperties" : false, "properties" : { - "certAlias" : { - "type" : "string" - }, - "cipherSuites" : { - "type" : "string" - }, - "cipherSuitesExclude" : { - "type" : "string" - }, - "cipherSuitesInclude" : { - "type" : "string" + "basePath" : { + "type" : "string", + "title" : "Base Path", + "description" : "Set the base path to store in ZK" }, - "clientAuthentication" : { + "connectionTimeout" : { "type" : "string", - "enum" : [ "NONE", "WANT", "REQUIRE" ] + "title" : "Connection Timeout", + "description" : "Connection timeout." }, "id" : { - "type" : "string" - }, - "keyManagerAlgorithm" : { - "type" : "string" - }, - "keyManagerProvider" : { - "type" : "string" - }, - "keyStore" : { - "type" : "string" - }, - "keyStoreProvider" : { - "type" : "string" - }, - "keyStoreType" : { - "type" : "string" - }, - "keystorePassword" : { - "type" : "string" - }, - "namedGroups" : { - "type" : "string" + "type" : "string", + "title" : "Id", + "description" : "The id of this node" }, - "namedGroupsExclude" : { - "type" : "string" + "namespace" : { + "type" : "string", + "title" : "Namespace", + "description" : "As ZooKeeper is a shared space, users of a given cluster should stay within a pre-defined namespace. If a namespace is set here, all paths will get pre-pended with the namespace" }, - "namedGroupsInclude" : { - "type" : "string" + "nodes" : { + "type" : "string", + "title" : "Nodes", + "description" : "A comma separate list of servers to connect to in the form host:port" }, - "provider" : { - "type" : "string" + "properties" : { + "type" : "array", + "title" : "Properties", + "description" : "Set client properties to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.", + "items" : { + "$ref" : "#/items/definitions/org.apache.camel.model.PropertyDefinition" + } }, - "secureRandomAlgorithm" : { - "type" : "string" + "reconnectBaseSleepTime" : { + "type" : "string", + "title" : "Reconnect Base Sleep Time", + "description" : "Initial amount of time to wait between retries." }, - "secureRandomProvider" : { - "type" : "string" + "reconnectMaxRetries" : { + "type" : "string", + "title" : "Reconnect Max Retries", + "description" : "Max number of times to retry" }, - "secureSocketProtocol" : { - "type" : "string" + "reconnectMaxSleepTime" : { + "type" : "string", + "title" : "Reconnect Max Sleep Time", + "description" : "Max time in ms to sleep on each retry" }, "sessionTimeout" : { - "type" : "string" - }, - "signatureSchemes" : { - "type" : "string" - }, - "signatureSchemesExclude" : { - "type" : "string" - }, - "signatureSchemesInclude" : { - "type" : "string" - }, - "trustAllCertificates" : { - "type" : "string" - }, - "trustStore" : { - "type" : "string" - }, - "trustStorePassword" : { - "type" : "string" + "type" : "string", + "title" : "Session Timeout", + "description" : "Session timeout." } - } + }, + "required" : [ "basePath", "nodes" ] }, "org.apache.camel.model.config.BatchResequencerConfig" : { "title" : "Batch Config", @@ -10223,9 +11362,6 @@ "grok" : { "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GrokDataFormat" }, - "groovyJson" : { - "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GroovyJSonDataFormat" - }, "groovyXml" : { "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GroovyXmlDataFormat" }, @@ -10705,25 +11841,6 @@ }, "required" : [ "pattern" ] }, - "org.apache.camel.model.dataformat.GroovyJSonDataFormat" : { - "title" : "Groovy JSon", - "description" : "Transform between JSon and java.util.Map or java.util.List objects.", - "type" : "object", - "additionalProperties" : false, - "properties" : { - "id" : { - "type" : "string", - "title" : "Id", - "description" : "The id of this node" - }, - "prettyPrint" : { - "type" : "boolean", - "title" : "Pretty Print", - "description" : "To pretty printing output nicely formatted. Is by default true.", - "default" : true - } - } - }, "org.apache.camel.model.dataformat.GroovyXmlDataFormat" : { "title" : "Groovy XML", "description" : "Transform between XML and Groovy Node (Map structure) objects.", @@ -12824,7 +13941,6 @@ "org.apache.camel.model.language.CSimpleExpression" : { "title" : "CSimple", "description" : "Evaluate a compiled simple expression.", - "deprecated" : true, "oneOf" : [ { "type" : "string" }, { @@ -16461,8 +17577,6 @@ "required" : [ "fory" ] }, { "required" : [ "grok" ] - }, { - "required" : [ "groovyJson" ] }, { "required" : [ "groovyXml" ] }, { @@ -16643,14 +17757,6 @@ "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GrokDataFormat" } } - }, { - "type" : "object", - "required" : [ "groovyJson" ], - "properties" : { - "groovyJson" : { - "$ref" : "#/items/definitions/org.apache.camel.model.dataformat.GroovyJSonDataFormat" - } - } }, { "type" : "object", "required" : [ "groovyXml" ], @@ -16922,7 +18028,6 @@ "flatpack" : { }, "fory" : { }, "grok" : { }, - "groovyJson" : { }, "groovyXml" : { }, "gzipDeflater" : { }, "hl7" : { }, @@ -17188,20 +18293,11 @@ "templatedRoute" : { "$ref" : "#/items/definitions/org.apache.camel.model.TemplatedRouteDefinition" }, - "sslContextParameters" : { - "$ref" : "#/items/definitions/org.apache.camel.model.app.SSLContextParametersDefinition" - }, "restConfiguration" : { "$ref" : "#/items/definitions/org.apache.camel.model.rest.RestConfigurationDefinition" }, "rest" : { "$ref" : "#/items/definitions/org.apache.camel.model.rest.RestDefinition" - }, - "transformers" : { - "$ref" : "#/items/definitions/org.apache.camel.model.transformer.TransformersDefinition" - }, - "validators" : { - "$ref" : "#/items/definitions/org.apache.camel.model.validator.ValidatorsDefinition" } } } diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoaderSupport.java b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoaderSupport.java index bfd11e5212fa1..68479b25066f6 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoaderSupport.java +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoaderSupport.java @@ -47,7 +47,7 @@ public abstract class YamlRoutesBuilderLoaderSupport extends RouteBuilderLoaderS // need to use shared bean deserializer final BeansDeserializer beansDeserializer = new BeansDeserializer(); - public YamlRoutesBuilderLoaderSupport(String extension) { + protected YamlRoutesBuilderLoaderSupport(String extension) { super(extension); } From 9972338450d0c644180cc0f0bfd1a31ebd05874f Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:42:48 +0000 Subject: [PATCH 33/37] (chores): fix SonarCloud S5993 in camel-yaml-dsl-common Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../org/apache/camel/dsl/yaml/common/YamlDeserializerBase.java | 2 +- .../dsl/yaml/common/YamlDeserializerEndpointAwareBase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerBase.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerBase.java index d7b9ac20b0f66..0bc1ce97b9e7f 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerBase.java +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerBase.java @@ -32,7 +32,7 @@ public abstract class YamlDeserializerBase extends YamlDeserializerSupport im private final Class type; - public YamlDeserializerBase(Class type) { + protected YamlDeserializerBase(Class type) { this.type = type; } diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerEndpointAwareBase.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerEndpointAwareBase.java index c72ef5d1f3d3b..b1d58ab10c26e 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerEndpointAwareBase.java +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerEndpointAwareBase.java @@ -26,7 +26,7 @@ public abstract class YamlDeserializerEndpointAwareBase extends YamlDeserializerBase { - public YamlDeserializerEndpointAwareBase(Class type) { + protected YamlDeserializerEndpointAwareBase(Class type) { super(type); } From e6541cd1e7efba69829f8043d3829649b172b80e Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:42:57 +0000 Subject: [PATCH 34/37] (chores): fix SonarCloud S5993 in camel-test-infra-artemis Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../infra/artemis/services/AbstractArtemisEmbeddedService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-infra/camel-test-infra-artemis/src/main/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java b/test-infra/camel-test-infra-artemis/src/main/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java index 6aab1711c47d0..ad6d7d746e8f8 100644 --- a/test-infra/camel-test-infra-artemis/src/main/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java +++ b/test-infra/camel-test-infra-artemis/src/main/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java @@ -51,7 +51,7 @@ public abstract class AbstractArtemisEmbeddedService implements ArtemisInfraServ private static final int DEFAULT_PORT = 61616; - public AbstractArtemisEmbeddedService() { + protected AbstractArtemisEmbeddedService() { this(getPort()); } From c6309cf9cc4c5fbc98aa135dc313c99ae1140635 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:43:07 +0000 Subject: [PATCH 35/37] (chores): fix SonarCloud S5993 in camel-test-infra-aws-v2 Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../infra/aws2/services/AWSLocalContainerInfraService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-infra/camel-test-infra-aws-v2/src/main/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerInfraService.java b/test-infra/camel-test-infra-aws-v2/src/main/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerInfraService.java index 474dbf5d5a064..3f23a82b8c543 100644 --- a/test-infra/camel-test-infra-aws-v2/src/main/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerInfraService.java +++ b/test-infra/camel-test-infra-aws-v2/src/main/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerInfraService.java @@ -35,15 +35,15 @@ public abstract class AWSLocalContainerInfraService implements AWSInfraService, private static final Logger LOG = LoggerFactory.getLogger(AWSLocalContainerInfraService.class); private final AWSContainer container; - public AWSLocalContainerInfraService(Service... services) { + protected AWSLocalContainerInfraService(Service... services) { this(LocalPropertyResolver.getProperty(AWSContainer.class, AWSProperties.AWS_CONTAINER), services); } - public AWSLocalContainerInfraService(AWSContainer container) { + protected AWSLocalContainerInfraService(AWSContainer container) { this.container = container; } - public AWSLocalContainerInfraService(String imageName, Service... services) { + protected AWSLocalContainerInfraService(String imageName, Service... services) { container = initContainer(imageName); String name = ContainerEnvironmentUtil.containerName(this.getClass()); if (name != null) { From acc290a84fc7a6930cb4413bccc5e68180746d4c Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:43:14 +0000 Subject: [PATCH 36/37] (chores): fix SonarCloud S5993 in camel-test-infra-azure-common Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../azure/common/services/AzureStorageInfraService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/services/AzureStorageInfraService.java b/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/services/AzureStorageInfraService.java index 67b16f3afa920..25a95ca2a291b 100644 --- a/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/services/AzureStorageInfraService.java +++ b/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/services/AzureStorageInfraService.java @@ -29,11 +29,11 @@ public abstract class AzureStorageInfraService implements AzureInfraService, Con private static final Logger LOG = LoggerFactory.getLogger(AzureStorageInfraService.class); private final AzuriteContainer container; - public AzureStorageInfraService() { + protected AzureStorageInfraService() { this(LocalPropertyResolver.getProperty(AzureStorageInfraService.class, AzureProperties.AZURE_CONTAINER)); } - public AzureStorageInfraService(String imageName) { + protected AzureStorageInfraService(String imageName) { this.container = initContainer(imageName); String name = ContainerEnvironmentUtil.containerName(this.getClass()); if (name != null) { @@ -41,7 +41,7 @@ public AzureStorageInfraService(String imageName) { } } - public AzureStorageInfraService(AzuriteContainer container) { + protected AzureStorageInfraService(AzuriteContainer container) { this.container = container; } From 63c08ce5ac33abe8f5aba52919f86a3f02105ad5 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Sat, 28 Mar 2026 13:43:23 +0000 Subject: [PATCH 37/37] (chores): fix SonarCloud S5993 in camel-test-infra-jetty Change public constructors of abstract classes to protected. Claude Code on behalf of Otavio R. Piske Co-Authored-By: Claude Sonnet 4.6 --- .../camel/test/infra/jetty/services/JettyConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-infra/camel-test-infra-jetty/src/main/java/org/apache/camel/test/infra/jetty/services/JettyConfiguration.java b/test-infra/camel-test-infra-jetty/src/main/java/org/apache/camel/test/infra/jetty/services/JettyConfiguration.java index fa8b3c0abb47f..5fe634b744348 100644 --- a/test-infra/camel-test-infra-jetty/src/main/java/org/apache/camel/test/infra/jetty/services/JettyConfiguration.java +++ b/test-infra/camel-test-infra-jetty/src/main/java/org/apache/camel/test/infra/jetty/services/JettyConfiguration.java @@ -58,7 +58,7 @@ public abstract static class AbstractContextHandlerConfiguration { protected final String contextPath; protected Consumer customizer; - public AbstractContextHandlerConfiguration(String contextPath) { + protected AbstractContextHandlerConfiguration(String contextPath) { this.contextPath = contextPath; }