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 a368cc6d4d1 CAMEL-18336: camel-jbang - Add docs about using Java beans a368cc6d4d1 is described below commit a368cc6d4d1e4d48966be1ee9dfbfa8fecebd040 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Aug 3 07:40:48 2022 +0200 CAMEL-18336: camel-jbang - Add docs about using Java beans --- .../modules/ROOT/pages/camel-jbang.adoc | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc index 9c575e9bce7..07ff06c5810 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc @@ -575,29 +575,29 @@ based dependency injection in Java classes. You can use the following Camel annotations (they work on all runtimes): -- `@BindToRegistry` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. -- `@BeanInject` to dependency inject a bean on a class field. -- `@PropertyInject` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. -- `@BindToRegistry` on a method to create a bean by invoking the method. -- `@Converter` on class level to auto-register the xref:type-converter.adoc[type converters] from the class. +- `@org.apache.camel.BindToRegistry` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. +- `@org.apache.camel.BeanInject` to dependency inject a bean on a class field. +- `@org.apache.camel.PropertyInject` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. +- `@org.apache.camel.BindToRegistry` on a method to create a bean by invoking the method. +- `@org.apache.camel.Converter` on class level to auto-register the xref:type-converter.adoc[type converters] from the class. ==== Using Spring Boot dependency injection You can use the following Spring Boot annotations: -- `@Component` or `@Service` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. -- `@Autowired` to dependency inject a bean on a class field. `@Qualifier` can be used to specify the bean id. -- `@Value` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. -- `@Bean` on a method to create a bean by invoking the method. +- `@org.springframework.stereotype.Component` or `@org.springframework.stereotype.Service` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. +- `@org.springframework.beans.factory.annotation.Autowired` to dependency inject a bean on a class field. `@org.springframework.beans.factory.annotation.Qualifier` can be used to specify the bean id. +- `@org.springframework.beans.factory.annotation.Value` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. +- `@org.springframework.context.annotation.Bean` on a method to create a bean by invoking the method. ==== Using Quarkus injection You can use the following Quarkus annotations: -- `@ApplicationScoped` or `@Singleton` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. `@Named` can be used to specify the bean id. -- `@Inject` to dependency inject a bean on a class field. `@Named` can be used to specify the bean id. -- `@ConfigProperty` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. -- `@Produces` on a method to create a bean by invoking the method. `@Named` can be used to specify the bean id. +- `@javax.enterprise.context.ApplicationScoped` or `@javax.inject.Singleton` on class level to create an instance of the class and register in the xref:registry.adoc[Registry]. `@javax.inject.Named` can be used to specify the bean id. +- `@javax.inject.Inject` to dependency inject a bean on a class field. `@javax.inject.Named` can be used to specify the bean id. +- `@org.eclipse.microprofile.config.inject.ConfigProperty` to inject a xref:using-propertyplaceholder.adoc[property placeholder]. Such as a property defined in `application.properties`. +- `@javax.enterprise.inject.Produces` on a method to create a bean by invoking the method. `@javax.inject.Named` can be used to specify the bean id. === Debugging