[ 
https://issues.apache.org/jira/browse/CAMEL-20080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-20080.
---------------------------------
    Resolution: Fixed

Thanks for the help - updated the doc a bit more.

More PRs is welome, just send them without creating a JIRA

> Removal of getExtentions() is not mentioned in migration guide to Camel 4
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-20080
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20080
>             Project: Camel
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 4.0.0
>            Reporter: Raymond
>            Priority: Minor
>             Fix For: 4.2.0
>
>
> Based on this thread on the mailing list:
> [https://lists.apache.org/thread/gkzpjsrdxwrc2jsh82vp92dzdlympjtf]
> I create this issue to improve the migration guide from Camel 3.0 to 4.0
> In Camel 3 this code could be used:
> {code:java}
> ManagedCamelContext managed = 
> context.getExtension(ManagedCamelContext.class);{code}
> The "getExtension()" method is however not part of the CamelContext class in 
> Camel 4. This is not documented in the migration code to Camel4, as well as 
> what alternative can be used.
> I think the following does the same (not sure):
> {code:java}
> ManagedCamelContext managed = 
> context.getCamelContextExtension().getContextPlugin(ManagedCamelContext.class);{code}
> To be honest it would nice if the ManagedCamelContext could either be 
> accessible directly from the CamelContext (similar to 
> {{{}getCamelContextExtension{}}}) or the PluginHelper. Something like:
> {code:java}
> context.getManagedCamelContext();
> {code}
> or
> {code:java}
> PluginHelper.getManagedCamelContext(); {code}
> Another note as mentioned on the mailing list. The API changes in the 
> migration guide could be improved for removed/add/changed methods. It may be 
> clearer to put them in a table, with one column (add / removed /changed), a 
> column with old syntax and a column with the new syntax (if applicable).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to