This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 78c57e4723 Minor tidy up of controlbus extension documentation
78c57e4723 is described below
commit 78c57e47231f2a6c00191475a4765948cc5e358b
Author: James Netherton <[email protected]>
AuthorDate: Fri Nov 25 07:12:27 2022 +0000
Minor tidy up of controlbus extension documentation
---
.../ROOT/pages/reference/extensions/controlbus.adoc | 16 +++++++++++-----
.../controlbus/runtime/src/main/doc/limitations.adoc | 8 +++++++-
extensions/controlbus/runtime/src/main/doc/usage.adoc | 8 ++++----
3 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc
b/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc
index 191182d933..354b2523d2 100644
--- a/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc
@@ -49,7 +49,7 @@ endif::[]
== Usage
[id="extensions-controlbus-usage-actions"]
=== Actions
-
+ifeval::[{doc-show-advanced-features} == true]
[id="extensions-controlbus-usage-statistics"]
==== Statistics
@@ -62,7 +62,7 @@ When using the `stats` command endpoint, the
`camel-quarkus-management` extensio
<artifactId>camel-quarkus-management</artifactId>
</dependency>
----
-
+endif::[]
[id="extensions-controlbus-usage-languages"]
=== Languages
@@ -70,7 +70,7 @@ When using the `stats` command endpoint, the
`camel-quarkus-management` extensio
[id="extensions-controlbus-usage-bean"]
==== Bean
-The Bean language can be used to invoke a method on a Bean to control the
state of routes. The `org.apache.camel.quarkus:camel-quarkus-bean` extension
must be added to the classpath. Maven users must add the following dependency
to the POM:
+The Bean language can be used to invoke a method on a bean to control the
state of routes. The `org.apache.camel.quarkus:camel-quarkus-bean` extension
must be added to the classpath. Maven users must add the following dependency
to the POM:
[source,xml]
----
@@ -80,7 +80,7 @@ The Bean language can be used to invoke a method on a Bean to
control the state
</dependency>
----
-In native mode, the Bean class must be annotated with `@RegisterForReflection`.
+In native mode, the bean class must be annotated with `@RegisterForReflection`.
[id="extensions-controlbus-usage-simple"]
==== Simple
@@ -113,5 +113,11 @@ quarkus.camel.native.reflection.include-patterns =
org.apache.camel.spi.RouteCon
[id="extensions-controlbus-limitations-statistics"]
=== Statistics
-The `stats` action is not available in native mode as JMX is not supported in
the Graal VM. Therefore, attempting to build a native image with the
`camel-quarkus-management` extension on the classpath will result in a build
failure.
+ifeval::[{doc-show-advanced-features} == true]
+The `stats` action is not available in native mode as JMX is not supported on
GraalVM. Therefore, attempting to build a native image with the
`camel-quarkus-management` extension on the classpath will result in a build
failure.
+endif::[]
+
+ifeval::[{doc-show-extra-content} == true]
+include::controlbus-statistics-unsupported.adoc[]
+endif::[]
diff --git a/extensions/controlbus/runtime/src/main/doc/limitations.adoc
b/extensions/controlbus/runtime/src/main/doc/limitations.adoc
index f168db0742..33086b4019 100644
--- a/extensions/controlbus/runtime/src/main/doc/limitations.adoc
+++ b/extensions/controlbus/runtime/src/main/doc/limitations.adoc
@@ -1,3 +1,9 @@
=== Statistics
-The `stats` action is not available in native mode as JMX is not supported in
the Graal VM. Therefore, attempting to build a native image with the
`camel-quarkus-management` extension on the classpath will result in a build
failure.
\ No newline at end of file
+ifeval::[{doc-show-advanced-features} == true]
+The `stats` action is not available in native mode as JMX is not supported on
GraalVM. Therefore, attempting to build a native image with the
`camel-quarkus-management` extension on the classpath will result in a build
failure.
+endif::[]
+
+ifeval::[{doc-show-extra-content} == true]
+include::controlbus-statistics-unsupported.adoc[]
+endif::[]
diff --git a/extensions/controlbus/runtime/src/main/doc/usage.adoc
b/extensions/controlbus/runtime/src/main/doc/usage.adoc
index 39d6a7df72..cc4c3aacff 100644
--- a/extensions/controlbus/runtime/src/main/doc/usage.adoc
+++ b/extensions/controlbus/runtime/src/main/doc/usage.adoc
@@ -1,5 +1,5 @@
=== Actions
-
+ifeval::[{doc-show-advanced-features} == true]
==== Statistics
When using the `stats` command endpoint, the `camel-quarkus-management`
extension must be added as a project dependency to enable JMX. Maven users will
have to add the following to their `pom.xml`:
@@ -11,13 +11,13 @@ When using the `stats` command endpoint, the
`camel-quarkus-management` extensio
<artifactId>camel-quarkus-management</artifactId>
</dependency>
----
-
+endif::[]
=== Languages
==== Bean
-The Bean language can be used to invoke a method on a Bean to control the
state of routes. The `org.apache.camel.quarkus:camel-quarkus-bean` extension
must be added to the classpath. Maven users must add the following dependency
to the POM:
+The Bean language can be used to invoke a method on a bean to control the
state of routes. The `org.apache.camel.quarkus:camel-quarkus-bean` extension
must be added to the classpath. Maven users must add the following dependency
to the POM:
[source,xml]
----
@@ -27,7 +27,7 @@ The Bean language can be used to invoke a method on a Bean to
control the state
</dependency>
----
-In native mode, the Bean class must be annotated with `@RegisterForReflection`.
+In native mode, the bean class must be annotated with `@RegisterForReflection`.
==== Simple