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

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


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new b04d45c59ef CAMEL-18339: Java DSL (joor) - Allow compiled classes to 
be loadable from anywhere in Camel
b04d45c59ef is described below

commit b04d45c59efa51c64fc078a1a162de81bee9958c
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Aug 3 11:39:19 2022 +0200

    CAMEL-18339: Java DSL (joor) - Allow compiled classes to be loadable from 
anywhere in Camel
---
 .../modules/ROOT/pages/camel-jbang.adoc            | 32 ----------------------
 1 file changed, 32 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 07ff06c5810..7eaee14fc45 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -531,38 +531,6 @@ There is basic support for including regular Java source 
files together with Cam
 and let Camel JBang runtime compile the Java source. This means you can 
include smaller utility
 classes, POJOs, Camel Processors and whatnot that the application needs.
 
-If any of these beans must be used/shared in the Camel application then they 
must be shared via bean ids,
-and not via classloading.
-
-Given a bean as below:
-
-[source,java]
-----
[email protected]("helloBean")
-public class HelloBean {
-
-    public String greeting() {
-        return "Hello World";
-    }
-}
-----
-
-Notice how the class is annotated with `@BindToRegistry`, to assign the bean 
an id, which
-we can use to call the bean from Camel routes such as:
-
-TIP: Instead of using `@BindToRegistry` you can also use Spring or Quarkus 
annotations (see further below).
-
-[source,yaml]
-----
-- from:
-    uri: "timer:yaml"
-    parameters:
-      period: "1000"
-    steps:
-      - bean: "helloBean"
-      - log: "${body}"
-----
-
 IMPORTANT: The Java source files cannot use package names. This may change in 
the future.
 
 === Dependency Injection in Java classes

Reply via email to