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

commit 7fc55a71c97c292b758760ba057830fc4d561997
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 9 14:05:29 2023 +0100

    CAMEL-20080: Improve 4.0.x migration guide
---
 .../modules/ROOT/pages/camel-4-migration-guide.adoc     | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
index 479c8a8d300..8ef7de53067 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc
@@ -98,8 +98,23 @@ All the `camel-test` modules that were JUnit 4.x based has 
been removed. All tes
 |===
 
 TIP: The `org.apache.camel.support.PluginHelper` gives easy access to various 
extensions and context plugins, that
-was available previously in Camel v3 directly from `CamelContext`. For example 
+was available previously in Camel v3 directly from `CamelContext`.
 
+NOTE: You can get access to the advanced APIs in `CamelContext` known as 
`ExtendedCamelContext` via `context.getCamelContextExtension()`.
+
+To get hold of `ManagedCamelContext` then you should use the following way:
+
+[source,java]
+----
+ManagedCamelContext managed = 
camelContext.getCamelContextExtension().getContextPlugin(ManagedCamelContext.class);
+----
+
+This can be done by many other advanced Camel features such as `RoutesLoader` 
or `ModelToXMLDumper`:
+
+[source,java]
+----
+RoutesLoader loader = 
camelContext.getCamelContextExtension().getContextPlugin(RoutesLoader.class);
+----
 
 == EIP Changes
 

Reply via email to