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 c204719022d CAMEL-21801: Spring Cloud Config Porperty Function
c204719022d is described below

commit c204719022da0b1d9db119965a6683f164176d50
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Apr 9 07:35:16 2025 +0200

    CAMEL-21801: Spring Cloud Config Porperty Function
---
 ...fig-component.adoc => spring-cloud-config.adoc} | 22 ++++++++++++----------
 docs/components/modules/ROOT/nav.adoc              |  1 -
 .../ROOT/pages/spring-cloud-config-component.adoc  |  1 -
 docs/components/modules/others/nav.adoc            |  1 +
 .../modules/others/pages/spring-cloud-config.adoc  |  1 +
 5 files changed, 14 insertions(+), 12 deletions(-)

diff --git 
a/components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config-component.adoc
 
b/components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config.adoc
similarity index 91%
rename from 
components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config-component.adoc
rename to 
components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config.adoc
index b246d7a1b22..82f05d366b6 100644
--- 
a/components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config-component.adoc
+++ 
b/components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config.adoc
@@ -2,11 +2,10 @@
 :doctitle: Spring Cloud Config
 :shortname: spring-cloud-config
 :artifactid: camel-spring-cloud-config
-:description: Retrieve configurations from a Spring Cloud Config Server.
-:since: 4.11.0
-:supportlevel: Stable
+:description: Camel Spring Cloud Config support
+:since: 4.12
+:supportlevel: Preview
 :tabs-sync-option:
-:component-header: Only PropertyFunctions is supported
 //Manually maintained attributes
 :group: Spring
 
@@ -20,6 +19,7 @@ This component includes a Properties Function implementation 
that allows Apache
 directly from Spring Cloud Config.
 
 == Components
+
 This component provides the following features:
 
 - Property resolution from Spring Cloud Config via property placeholders
@@ -39,11 +39,11 @@ To use the Spring Cloud Config component in your project, 
add the following Mave
 ----
 
 == Property Function
-=== Overview
 
 This component provides a PropertiesFunction implementation that resolves 
property placeholders with the prefix spring-config: using values from a Spring 
Cloud Config Server.
 
 === Configuration
+
 The integration with Spring Cloud Config is configured through the Camel 
context's vault configuration. The following properties can be set:
 
 [options="header"]
@@ -60,9 +60,10 @@ The integration with Spring Cloud Config is configured 
through the Camel context
 These properties should be configured using the SpringCloudConfigConfiguration 
on the Camel context.
 
 === Usage
+
 To use the Spring Cloud Config property function in your Camel routes or 
configuration, use the following syntax:
 
-[source,java]
+[source,text]
 ----
 {{spring-config:myProperty}}
 ----
@@ -70,7 +71,8 @@ To use the Spring Cloud Config property function in your 
Camel routes or configu
 The property function will resolve `myProperty` from the Spring Cloud Config 
Server.
 
 === Example
-A simple example of using the Spring Cloud Config property function in a Camel 
route, 
+
+A simple example of using the Spring Cloud Config property function in a Camel 
route,
 given that a Spring Cloud Config Server is running at `config-server:8888` and 
Spring Security is enabled on the server:
 
 [source,properties]
@@ -85,12 +87,12 @@ camel.vault.spring-config.label=latest
 [source,java]
 ----
 from("direct")
-.setHeader("MyHeader", simple("{{spring-config:custom.property}}"))
-.to("log");
+  .setHeader("MyHeader", simple("{{spring-config:custom.property}}"))
+  .to("log");
 ----
 
 == Automatic Configuration Reload
-=== Overview
+
 The component includes a periodic task that monitors Spring Cloud Config 
properties for changes and triggers a Camel context reload when property values 
have changed.
 
 == See Also
diff --git a/docs/components/modules/ROOT/nav.adoc 
b/docs/components/modules/ROOT/nav.adoc
index 427c6333b47..8e48c1a194e 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -311,7 +311,6 @@
 ** xref:splunk-hec-component.adoc[Splunk HEC]
 ** xref:spring-summary.adoc[Spring]
 *** xref:spring-batch-component.adoc[Spring Batch]
-*** xref:spring-cloud-config-component.adoc[Spring Cloud Config]
 *** xref:spring-event-component.adoc[Spring Event]
 *** xref:spring-jdbc-component.adoc[Spring JDBC]
 *** xref:spring-ldap-component.adoc[Spring LDAP]
diff --git 
a/docs/components/modules/ROOT/pages/spring-cloud-config-component.adoc 
b/docs/components/modules/ROOT/pages/spring-cloud-config-component.adoc
deleted file mode 120000
index 4fe975f4711..00000000000
--- a/docs/components/modules/ROOT/pages/spring-cloud-config-component.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config-component.adoc
\ No newline at end of file
diff --git a/docs/components/modules/others/nav.adoc 
b/docs/components/modules/others/nav.adoc
index a50714416d4..9bac32ee593 100644
--- a/docs/components/modules/others/nav.adoc
+++ b/docs/components/modules/others/nav.adoc
@@ -48,6 +48,7 @@
 ** xref:resourceresolver-github.adoc[Resourceresolver Github]
 ** xref:rxjava.adoc[RxJava]
 ** xref:shiro.adoc[Shiro]
+*** xref:spring-cloud-config.adoc[Spring Cloud Config]
 ** xref:spring-main.adoc[Spring Main]
 ** xref:spring-security.adoc[Spring Security]
 ** xref:spring-xml.adoc[Spring XML]
diff --git a/docs/components/modules/others/pages/spring-cloud-config.adoc 
b/docs/components/modules/others/pages/spring-cloud-config.adoc
new file mode 120000
index 00000000000..dcb2e483262
--- /dev/null
+++ b/docs/components/modules/others/pages/spring-cloud-config.adoc
@@ -0,0 +1 @@
+../../../../../components/camel-spring-parent/camel-spring-cloud-config/src/main/docs/spring-cloud-config.adoc
\ No newline at end of file

Reply via email to