This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 9449710711b Regen
9449710711b is described below
commit 9449710711bae8a97e2ec5a0d930ff8d2e51567f
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 2 20:21:50 2026 +0200
Regen
---
.../apache/camel/springboot/catalog/components/avro.json | 6 ++++--
.../camel/springboot/catalog/dataformats/avro.json | 3 ++-
.../camel-avro-rpc-starter/src/main/docs/avro-rpc.json | 6 ++++++
.../avro/springboot/AvroComponentConfiguration.java | 16 ++++++++++++++++
.../camel-avro-starter/src/main/docs/avro.json | 6 ++++++
.../avro/springboot/AvroDataFormatConfiguration.java | 15 +++++++++++++++
.../modules/ROOT/pages/starters/avro-rpc.adoc | 3 ++-
docs/spring-boot/modules/ROOT/pages/starters/avro.adoc | 3 ++-
8 files changed, 53 insertions(+), 5 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/avro.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/avro.json
index af9ef58a438..91a44087217 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/avro.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/avro.json
@@ -33,7 +33,8 @@
"bridgeErrorHandler": { "index": 6, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
"lazyStartProducer": { "index": 7, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
"autowiredEnabled": { "index": 8, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
- "configuration": { "index": 9, "kind": "property", "displayName":
"Configuration", "group": "advanced", "label": "advanced", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.avro.AvroConfiguration", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a shared
AvroConfiguration to configure options once" }
+ "configuration": { "index": 9, "kind": "property", "displayName":
"Configuration", "group": "advanced", "label": "advanced", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.avro.AvroConfiguration", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a shared
AvroConfiguration to configure options once" },
+ "serializablePackages": { "index": 10, "kind": "property", "displayName":
"Serializable Packages", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:serialization",
"configurationClass": "org.apache.camel.component.avro.AvroConfiguration",
"configurationField": "configuration", "description": "Comma-separated list of
additional packages that con [...]
},
"headers": {
"CamelAvroMessageName": { "index": 0, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The name of the message to send. In consumer overrides
message name from URI (if any)", "constantName":
"org.apache.camel.component.avro.AvroConstants#AVRO_MESSAGE_NAME" }
@@ -52,6 +53,7 @@
"bridgeErrorHandler": { "index": 10, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 11, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
"exchangePattern": { "index": 12, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
- "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
+ "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
+ "serializablePackages": { "index": 14, "kind": "parameter", "displayName":
"Serializable Packages", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:serialization",
"configurationClass": "org.apache.camel.component.avro.AvroConfiguration",
"configurationField": "configuration", "description": "Comma-separated list of
additional packages that co [...]
}
}
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/avro.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/avro.json
index bb82f6fadf9..7ba322c3407 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/avro.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/avro.json
@@ -17,6 +17,7 @@
},
"properties": {
"id": { "index": 0, "kind": "attribute", "displayName": "Id", "group":
"common", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
id of this node" },
- "instanceClassName": { "index": 1, "kind": "attribute", "displayName":
"Instance Class Name", "group": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Class name to use for marshal and
unmarshalling." }
+ "instanceClassName": { "index": 1, "kind": "attribute", "displayName":
"Instance Class Name", "group": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Class name to use for marshal and
unmarshalling." },
+ "serializablePackages": { "index": 2, "kind": "attribute", "displayName":
"Serializable Packages", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Comma-separated list of
additional packages that contain trusted Avro model classes. Avro 1.12
validates classes resolved from schemas; Camel automatically trusts packages
derived from the configured sche [...]
}
}
diff --git
a/components-starter/camel-avro-rpc-starter/src/main/docs/avro-rpc.json
b/components-starter/camel-avro-rpc-starter/src/main/docs/avro-rpc.json
index 1a274cdb0d4..4385a0aa934 100644
--- a/components-starter/camel-avro-rpc-starter/src/main/docs/avro-rpc.json
+++ b/components-starter/camel-avro-rpc-starter/src/main/docs/avro-rpc.json
@@ -76,6 +76,12 @@
"sourceType":
"org.apache.camel.component.avro.springboot.AvroComponentConfiguration",
"defaultValue": false
},
+ {
+ "name": "camel.component.avro.serializable-packages",
+ "type": "java.lang.String",
+ "description": "Comma-separated list of additional packages that contain
trusted Avro model classes. Avro 1.12 validates classes resolved from schemas;
Camel automatically trusts org.apache.avro for IPC and packages derived from
the configured protocol. Use this option for any additional model packages not
inferred from the protocol.",
+ "sourceType":
"org.apache.camel.component.avro.springboot.AvroComponentConfiguration"
+ },
{
"name": "camel.component.avro.single-parameter",
"type": "java.lang.Boolean",
diff --git
a/components-starter/camel-avro-rpc-starter/src/main/java/org/apache/camel/component/avro/springboot/AvroComponentConfiguration.java
b/components-starter/camel-avro-rpc-starter/src/main/java/org/apache/camel/component/avro/springboot/AvroComponentConfiguration.java
index 6930de44535..50a91ab48a3 100644
---
a/components-starter/camel-avro-rpc-starter/src/main/java/org/apache/camel/component/avro/springboot/AvroComponentConfiguration.java
+++
b/components-starter/camel-avro-rpc-starter/src/main/java/org/apache/camel/component/avro/springboot/AvroComponentConfiguration.java
@@ -102,6 +102,14 @@ public class AvroComponentConfiguration
* is a org.apache.camel.component.avro.AvroConfiguration type.
*/
private AvroConfiguration configuration;
+ /**
+ * Comma-separated list of additional packages that contain trusted Avro
+ * model classes. Avro 1.12 validates classes resolved from schemas; Camel
+ * automatically trusts org.apache.avro for IPC and packages derived from
+ * the configured protocol. Use this option for any additional model
+ * packages not inferred from the protocol.
+ */
+ private String serializablePackages;
public Protocol getProtocol() {
return protocol;
@@ -182,4 +190,12 @@ public class AvroComponentConfiguration
public void setConfiguration(AvroConfiguration configuration) {
this.configuration = configuration;
}
+
+ public String getSerializablePackages() {
+ return serializablePackages;
+ }
+
+ public void setSerializablePackages(String serializablePackages) {
+ this.serializablePackages = serializablePackages;
+ }
}
\ No newline at end of file
diff --git a/components-starter/camel-avro-starter/src/main/docs/avro.json
b/components-starter/camel-avro-starter/src/main/docs/avro.json
index 2d88fd19bf0..97aa76705e6 100644
--- a/components-starter/camel-avro-starter/src/main/docs/avro.json
+++ b/components-starter/camel-avro-starter/src/main/docs/avro.json
@@ -29,6 +29,12 @@
"type": "java.lang.String",
"description": "Class name to use for marshal and unmarshalling.",
"sourceType":
"org.apache.camel.dataformat.avro.springboot.AvroDataFormatConfiguration"
+ },
+ {
+ "name": "camel.dataformat.avro.serializable-packages",
+ "type": "java.lang.String",
+ "description": "Comma-separated list of additional packages that contain
trusted Avro model classes. Avro 1.12 validates classes resolved from schemas;
Camel automatically trusts packages derived from the configured schema or
instance class.",
+ "sourceType":
"org.apache.camel.dataformat.avro.springboot.AvroDataFormatConfiguration"
}
],
"hints": [],
diff --git
a/components-starter/camel-avro-starter/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
b/components-starter/camel-avro-starter/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
index 078c83b0bde..632ca254492 100644
---
a/components-starter/camel-avro-starter/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
+++
b/components-starter/camel-avro-starter/src/main/java/org/apache/camel/dataformat/avro/springboot/AvroDataFormatConfiguration.java
@@ -38,6 +38,13 @@ public class AvroDataFormatConfiguration
* Class name to use for marshal and unmarshalling.
*/
private String instanceClassName;
+ /**
+ * Comma-separated list of additional packages that contain trusted Avro
+ * model classes. Avro 1.12 validates classes resolved from schemas; Camel
+ * automatically trusts packages derived from the configured schema or
+ * instance class.
+ */
+ private String serializablePackages;
public String getInstanceClassName() {
return instanceClassName;
@@ -46,4 +53,12 @@ public class AvroDataFormatConfiguration
public void setInstanceClassName(String instanceClassName) {
this.instanceClassName = instanceClassName;
}
+
+ public String getSerializablePackages() {
+ return serializablePackages;
+ }
+
+ public void setSerializablePackages(String serializablePackages) {
+ this.serializablePackages = serializablePackages;
+ }
}
\ No newline at end of file
diff --git a/docs/spring-boot/modules/ROOT/pages/starters/avro-rpc.adoc
b/docs/spring-boot/modules/ROOT/pages/starters/avro-rpc.adoc
index 7bd02d33f6c..6d89eff3443 100644
--- a/docs/spring-boot/modules/ROOT/pages/starters/avro-rpc.adoc
+++ b/docs/spring-boot/modules/ROOT/pages/starters/avro-rpc.adoc
@@ -23,7 +23,7 @@ Please refer to the above links for usage and configuration
details.
== Spring Boot Auto-Configuration
-The starter supports 11 options, which are listed below.
+The starter supports 12 options, which are listed below.
[width="100%",cols="2,5,^1,2",options="header"]
|===
@@ -37,6 +37,7 @@ The starter supports 11 options, which are listed below.
| camel.component.avro.protocol-class-name | Avro protocol to use defined by
the FQN class name | | String
| camel.component.avro.protocol-location | Avro protocol location | | String
| camel.component.avro.reflection-protocol | If the protocol object provided
is reflection protocol. Should be used only with protocol parameter because for
protocolClassName protocol type will be auto-detected | false | Boolean
+| camel.component.avro.serializable-packages | Comma-separated list of
additional packages that contain trusted Avro model classes. Avro 1.12
validates classes resolved from schemas; Camel automatically trusts
org.apache.avro for IPC and packages derived from the configured protocol. Use
this option for any additional model packages not inferred from the protocol. |
| String
| camel.component.avro.single-parameter | If true, consumer parameter won't be
wrapped into an array. Will fail if protocol specifies more than one parameter
for the message | false | Boolean
| camel.component.avro.uri-authority | Authority to use (username and
password) | | String
|===
diff --git a/docs/spring-boot/modules/ROOT/pages/starters/avro.adoc
b/docs/spring-boot/modules/ROOT/pages/starters/avro.adoc
index cbf39ae45ce..c40d5dfd093 100644
--- a/docs/spring-boot/modules/ROOT/pages/starters/avro.adoc
+++ b/docs/spring-boot/modules/ROOT/pages/starters/avro.adoc
@@ -23,11 +23,12 @@ Please refer to the above links for usage and configuration
details.
== Spring Boot Auto-Configuration
-The starter supports 2 options, which are listed below.
+The starter supports 3 options, which are listed below.
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
| camel.dataformat.avro.enabled | Whether to enable auto configuration of the
avro data format. This is enabled by default. | | Boolean
| camel.dataformat.avro.instance-class-name | Class name to use for marshal
and unmarshalling. | | String
+| camel.dataformat.avro.serializable-packages | Comma-separated list of
additional packages that contain trusted Avro model classes. Avro 1.12
validates classes resolved from schemas; Camel automatically trusts packages
derived from the configured schema or instance class. | | String
|===