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 304bcc84d5f CAMEL-19945: camel-core - Add bean as property placeholder 
function
304bcc84d5f is described below

commit 304bcc84d5f25fcb683fce2e150c02d116c38bbd
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Oct 11 09:57:37 2023 +0200

    CAMEL-19945: camel-core - Add bean as property placeholder function
---
 docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc 
b/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc
index c2ac92e5f0d..6fff368c90e 100644
--- a/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc
+++ b/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc
@@ -438,7 +438,7 @@ The xref:components::properties-component.adoc[Properties] 
component includes th
 
 * `env` - A function to lookup the property from OS environment variables
 * `sys` - A function to lookup the property from Java JVM system properties
-* `bean` - A function to lookup the property from the return value of bean's 
method
+* `bean` - A function to lookup the property from the return value of bean's 
method (requires `camel-bean` JAR)
 * `service` - A function to lookup the property from OS environment variables 
using the service naming idiom
 * `service.name` - A function to lookup the property from OS environment 
variables using the service naming idiom returning the hostname part only
 * `service.port` - A function to lookup the property from OS environment 
variables using the service naming idiom returning the port part only
@@ -507,9 +507,9 @@ And we can use default values if the service has not been 
defined, for example t
 </camelContext>
 ----
 
-The bean function is for looking up the property from the return value of 
bean's method.
+The bean function (you need to have `camel-bean` JAR on classpath) is for 
looking up the property from the return value of bean's method.
 
-Assuming we have registered a bean named 'foo' that has a method called 'bar' 
that returns a directory name, then we can refer to the bean's method in the 
camel endpoint url, and use the FILE component to poll a directory:
+Assuming we have registered a bean named 'foo' that has a method called 'bar' 
that returns a directory name, then we can refer to the bean's method in the 
camel endpoint url, and use the file component to poll a directory:
 
 [source,xml]
 ----

Reply via email to