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

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


The following commit(s) were added to refs/heads/main by this push:
     new effda04f3deb CAMEL-28010: camel-azure-schema-registry - deprecate the 
module (#31215)
effda04f3deb is described below

commit effda04f3deb339d853f38ac51e4d5a810fab8be
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Dec 2 10:57:29 2026 +0100

    CAMEL-28010: camel-azure-schema-registry - deprecate the module (#31215)
    
    [CAMEL-28010](https://issues.apache.org/jira/browse/CAMEL-28010)
    
    `camel-azure-schema-registry` has one class, 
`DefaultAzureCredentialWrapper`: a `TokenCredential` with a no-argument 
constructor that delegates to the `DefaultAzureCredential` of Azure Identity, 
so that low-code users could create it as a bean by class name for the Azure 
Schema Registry serializers of Kafka.
    
    Its only users were the `kafka-azure-schema-registry-source`, 
`kafka-azure-schema-registry-sink` and 
`kafka-batch-azure-schema-registry-source` Kamelets. They were removed from 
camel-kamelets (apache/camel-kamelets#3165, part of #3162) because they could 
not start. The camel-kamelets-examples have their own copy of the class.
    
    A YAML (or XML) bean can now create the credential without the module:
    
    ```yaml
    - beans:
        - name: defaultAzureCredential
          type: com.azure.identity.DefaultAzureCredential
          builderClass: com.azure.identity.DefaultAzureCredentialBuilder
    ```
    
    This deprecates the module, following the conventions:
    - `(deprecated)` in the pom name and the doc title, `Stable-deprecated` 
support level
    - `@Deprecated(since = "4.25")` on the class
    - the doc page says why and shows the bean above (validated with 
`camel_validate_source`)
    - an entry in the 4.25 upgrade guide
    
    The generated JSON, `other.properties` and the catalog copies are 
regenerated.
    
    Note: #31208 also changes the description of this module; whichever PR 
merges second needs a small rebase.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../camel/catalog/docs/azure-schema-registry.adoc  | 24 ++++++++++++++++++----
 .../catalog/others/azure-schema-registry.json      |  2 +-
 .../camel-azure-schema-registry/pom.xml            |  2 +-
 .../services/org/apache/camel/other.properties     |  2 +-
 .../generated/resources/azure-schema-registry.json |  2 +-
 .../src/main/docs/azure-schema-registry.adoc       | 24 ++++++++++++++++++----
 .../registry/DefaultAzureCredentialWrapper.java    |  8 ++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc    | 15 ++++++++++++++
 8 files changed, 67 insertions(+), 12 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-schema-registry.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-schema-registry.adoc
index d3f5e914c147..8fdb9109a6bd 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-schema-registry.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-schema-registry.adoc
@@ -1,15 +1,31 @@
-= Azure Schema Registry Component
+= Azure Schema Registry Component (deprecated)
 :doctitle: Azure Schema Registry
 :shortname: azure-schema-registry
 :artifactid: camel-azure-schema-registry
 :description: TokenCredential with a no-argument constructor that delegates to 
the DefaultAzureCredential of Azure Identity, so the Azure Schema Registry 
serializers can be given it by class name
 :since: 4.2
-:supportlevel: Stable
+:supportlevel: Stable-deprecated
+:deprecated: *deprecated*
 :tabs-sync-option:
 //Manually maintained attributes
 :group: Azure
 
 *Since Camel {since}*
 
-The camel-azure-schema-registry component contains some useful classes to deal 
with authentication against
-the Azure Schema Registry
+The camel-azure-schema-registry component contains 
`DefaultAzureCredentialWrapper`, a `TokenCredential` with a
+no-argument constructor that delegates to the `DefaultAzureCredential` of 
Azure Identity, so that the Azure Schema
+Registry serializers of Kafka can be given the credential as a bean created by 
class name.
+
+This component is deprecated, and will be removed in a future release. The 
Kamelets that used it were removed from
+the Kamelet catalog. Create the credential as a bean with the builder of Azure 
Identity instead:
+
+[source,yaml]
+----
+- beans:
+    - name: defaultAzureCredential
+      type: com.azure.identity.DefaultAzureCredential
+      builderClass: com.azure.identity.DefaultAzureCredentialBuilder
+----
+
+Add the `com.azure:azure-identity` dependency to the integration, and refer to 
the bean as `#bean:defaultAzureCredential`
+in the configuration of the serializer.
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/azure-schema-registry.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/azure-schema-registry.json
index a59de985757d..6e5b3372fa34 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/azure-schema-registry.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/azure-schema-registry.json
@@ -4,7 +4,7 @@
     "name": "azure-schema-registry",
     "title": "Azure Schema Registry",
     "description": "TokenCredential with a no-argument constructor that 
delegates to the DefaultAzureCredential of Azure Identity, so the Azure Schema 
Registry serializers can be given it by class name",
-    "deprecated": false,
+    "deprecated": true,
     "firstVersion": "4.2.0",
     "label": "core",
     "supportLevel": "Stable",
diff --git a/components/camel-azure/camel-azure-schema-registry/pom.xml 
b/components/camel-azure/camel-azure-schema-registry/pom.xml
index 8fa538503757..9e843a80e8b2 100644
--- a/components/camel-azure/camel-azure-schema-registry/pom.xml
+++ b/components/camel-azure/camel-azure-schema-registry/pom.xml
@@ -28,7 +28,7 @@
 
     <artifactId>camel-azure-schema-registry</artifactId>
     <packaging>jar</packaging>
-    <name>Camel :: Azure :: Schema Registry</name>
+    <name>Camel :: Azure :: Schema Registry (deprecated)</name>
     <description>TokenCredential with a no-argument constructor that delegates 
to the DefaultAzureCredential of Azure Identity, so the Azure Schema Registry 
serializers can be given it by class name</description>
 
     <properties>
diff --git 
a/components/camel-azure/camel-azure-schema-registry/src/generated/resources/META-INF/services/org/apache/camel/other.properties
 
b/components/camel-azure/camel-azure-schema-registry/src/generated/resources/META-INF/services/org/apache/camel/other.properties
index 6c34cb3c6dab..dc4d2ca2f5dc 100644
--- 
a/components/camel-azure/camel-azure-schema-registry/src/generated/resources/META-INF/services/org/apache/camel/other.properties
+++ 
b/components/camel-azure/camel-azure-schema-registry/src/generated/resources/META-INF/services/org/apache/camel/other.properties
@@ -3,5 +3,5 @@ name=azure-schema-registry
 groupId=org.apache.camel
 artifactId=camel-azure-schema-registry
 version=4.24.0-SNAPSHOT
-projectName=Camel :: Azure :: Schema Registry
+projectName=Camel :: Azure :: Schema Registry (deprecated)
 projectDescription=TokenCredential with a no-argument constructor that 
delegates to the DefaultAzureCredential of Azure Identity, so the Azure Schema 
Registry serializers can be given it by class name
diff --git 
a/components/camel-azure/camel-azure-schema-registry/src/generated/resources/azure-schema-registry.json
 
b/components/camel-azure/camel-azure-schema-registry/src/generated/resources/azure-schema-registry.json
index a59de985757d..6e5b3372fa34 100644
--- 
a/components/camel-azure/camel-azure-schema-registry/src/generated/resources/azure-schema-registry.json
+++ 
b/components/camel-azure/camel-azure-schema-registry/src/generated/resources/azure-schema-registry.json
@@ -4,7 +4,7 @@
     "name": "azure-schema-registry",
     "title": "Azure Schema Registry",
     "description": "TokenCredential with a no-argument constructor that 
delegates to the DefaultAzureCredential of Azure Identity, so the Azure Schema 
Registry serializers can be given it by class name",
-    "deprecated": false,
+    "deprecated": true,
     "firstVersion": "4.2.0",
     "label": "core",
     "supportLevel": "Stable",
diff --git 
a/components/camel-azure/camel-azure-schema-registry/src/main/docs/azure-schema-registry.adoc
 
b/components/camel-azure/camel-azure-schema-registry/src/main/docs/azure-schema-registry.adoc
index d3f5e914c147..8fdb9109a6bd 100644
--- 
a/components/camel-azure/camel-azure-schema-registry/src/main/docs/azure-schema-registry.adoc
+++ 
b/components/camel-azure/camel-azure-schema-registry/src/main/docs/azure-schema-registry.adoc
@@ -1,15 +1,31 @@
-= Azure Schema Registry Component
+= Azure Schema Registry Component (deprecated)
 :doctitle: Azure Schema Registry
 :shortname: azure-schema-registry
 :artifactid: camel-azure-schema-registry
 :description: TokenCredential with a no-argument constructor that delegates to 
the DefaultAzureCredential of Azure Identity, so the Azure Schema Registry 
serializers can be given it by class name
 :since: 4.2
-:supportlevel: Stable
+:supportlevel: Stable-deprecated
+:deprecated: *deprecated*
 :tabs-sync-option:
 //Manually maintained attributes
 :group: Azure
 
 *Since Camel {since}*
 
-The camel-azure-schema-registry component contains some useful classes to deal 
with authentication against
-the Azure Schema Registry
+The camel-azure-schema-registry component contains 
`DefaultAzureCredentialWrapper`, a `TokenCredential` with a
+no-argument constructor that delegates to the `DefaultAzureCredential` of 
Azure Identity, so that the Azure Schema
+Registry serializers of Kafka can be given the credential as a bean created by 
class name.
+
+This component is deprecated, and will be removed in a future release. The 
Kamelets that used it were removed from
+the Kamelet catalog. Create the credential as a bean with the builder of Azure 
Identity instead:
+
+[source,yaml]
+----
+- beans:
+    - name: defaultAzureCredential
+      type: com.azure.identity.DefaultAzureCredential
+      builderClass: com.azure.identity.DefaultAzureCredentialBuilder
+----
+
+Add the `com.azure:azure-identity` dependency to the integration, and refer to 
the bean as `#bean:defaultAzureCredential`
+in the configuration of the serializer.
diff --git 
a/components/camel-azure/camel-azure-schema-registry/src/main/java/org/apache/camel/component/azure/schema/registry/DefaultAzureCredentialWrapper.java
 
b/components/camel-azure/camel-azure-schema-registry/src/main/java/org/apache/camel/component/azure/schema/registry/DefaultAzureCredentialWrapper.java
index 9e31d636d5ae..e14b7f16c4c3 100644
--- 
a/components/camel-azure/camel-azure-schema-registry/src/main/java/org/apache/camel/component/azure/schema/registry/DefaultAzureCredentialWrapper.java
+++ 
b/components/camel-azure/camel-azure-schema-registry/src/main/java/org/apache/camel/component/azure/schema/registry/DefaultAzureCredentialWrapper.java
@@ -22,6 +22,14 @@ import com.azure.core.credential.TokenRequestContext;
 import com.azure.identity.DefaultAzureCredentialBuilder;
 import reactor.core.publisher.Mono;
 
+/**
+ * A {@link TokenCredential} with a no-argument constructor that delegates to 
the {@code DefaultAzureCredential} of
+ * Azure Identity.
+ *
+ * @deprecated create the credential as a bean with the builder of Azure 
Identity instead (builderClass
+ *             com.azure.identity.DefaultAzureCredentialBuilder in a YAML or 
XML bean).
+ */
+@Deprecated(since = "4.25")
 public class DefaultAzureCredentialWrapper implements TokenCredential {
 
     private final TokenCredential credential;
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index f5f5b25c2021..d560799c36ec 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -44,6 +44,21 @@ or with `camel run --dep`. Deprecated with it: the 
`camel-dsl-modeline` componen
 `CamelContext.setModeline` / `isModeline`, the `ModelineFactory` SPI and the 
`camel run --modeline` option. The
 `camel dependency list` and `camel dependency update` commands keep handling 
the `//DEPS` lines of JBang scripts.
 
+=== camel-azure-schema-registry - deprecated
+
+The `camel-azure-schema-registry` component is deprecated, and will be removed 
in a future release. Its only class,
+`DefaultAzureCredentialWrapper`, gave the Azure Schema Registry serializers of 
Kafka a `DefaultAzureCredential` created
+by class name; the Kamelets that used it were removed from the Kamelet 
catalog. Create the credential as a bean with
+the builder of Azure Identity instead:
+
+[source,yaml]
+----
+- beans:
+    - name: defaultAzureCredential
+      type: com.azure.identity.DefaultAzureCredential
+      builderClass: com.azure.identity.DefaultAzureCredentialBuilder
+----
+
 === camel-pqc - default-material accessors and provider resolution
 
 The `PQCDefault*Material` helper classes now initialize their default 
cryptographic material lazily. Their backing

Reply via email to