Replace context.${method}(*) with context.getCamelContextExtension().${method}(*)

Apache 2.0
org.apache.camel.upgrade.camel45.UseExtendedCamelContextGetters
mod run . --recipe=org.apache.camel.upgrade.camel45.UseExtendedCamelContextGetters

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Move getter from context to ExtendedCamelContext. setTypeConverter
  2. Move getter from context to ExtendedCamelContext. getOrCreateTypeConverter
  3. Move getter from context to ExtendedCamelContext. setManagementMBeanAssembler
  4. Move getter from context to ExtendedCamelContext. getRestRegistryFactory
  5. Move getter from context to ExtendedCamelContext. setRestRegistryFactory
  6. Move getter from context to ExtendedCamelContext. setTransformerRegistry
  7. Move getter from context to ExtendedCamelContext. setValidatorRegistry
  8. Move getter from context to ExtendedCamelContext. setName
  9. Move getter from context to ExtendedCamelContext. setDescription
  10. Move getter from context to ExtendedCamelContext. getBootstrapFactoryFinder
  11. Move getter from context to ExtendedCamelContext. getFactoryFinder
  12. Move getter from context to ExtendedCamelContext. getFactoryFinder
  13. Move getter from context to ExtendedCamelContext. addInterceptStrategy
  14. Move getter from context to ExtendedCamelContext. getStartupStepRecorder
  15. Move getter from context to ExtendedCamelContext. setStartupStepRecorder
  16. Move getter from context to ExtendedCamelContext. resolvePropertyPlaceholders
  17. Move getter from context to ExtendedCamelContext. getBasePackageScan
  18. Move getter from context to ExtendedCamelContext. setBasePackageScan