This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch lazy in repository https://gitbox.apache.org/repos/asf/camel.git
commit e2d2960bf05b4942bf22bbf4b6293f46fc7111f1 Author: Claus Ibsen <[email protected]> AuthorDate: Thu Aug 29 09:33:41 2024 +0200 CAMEL-21137: camel-core - Add lazy option to @BindToRegistry --- core/camel-api/src/main/java/org/apache/camel/BindToRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/BindToRegistry.java b/core/camel-api/src/main/java/org/apache/camel/BindToRegistry.java index 5ebfaa28030..071311f64dd 100644 --- a/core/camel-api/src/main/java/org/apache/camel/BindToRegistry.java +++ b/core/camel-api/src/main/java/org/apache/camel/BindToRegistry.java @@ -48,8 +48,8 @@ public @interface BindToRegistry { boolean beanPostProcess() default false; /** - * If this annotation is on class or method level, where Camel would create a bean instance, then this option can be - * used to make this lazy (on-demand) instead of creating the bean eager. + * Whether to create the bean instance lazy (on-demand) instead of creating eager. + * Using lazy can be useful when you only need to create beans if they are explicit in-use. */ boolean lazy() default false; }
