Replace context.${method}(*) with context.getCamelContextExtension().${method}(*)
Apache 2.0org. apache. camel. upgrade. camel45. UseExtendedCamelContextGettersmod run . --recipe= org. apache. camel. upgrade. camel45. UseExtendedCamelContextGettersInstall 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.
- Move getter from context to ExtendedCamelContext.
setTypeConverter - Move getter from context to ExtendedCamelContext.
getOrCreateTypeConverter - Move getter from context to ExtendedCamelContext.
setManagementMBeanAssembler - Move getter from context to ExtendedCamelContext.
getRestRegistryFactory - Move getter from context to ExtendedCamelContext.
setRestRegistryFactory - Move getter from context to ExtendedCamelContext.
setTransformerRegistry - Move getter from context to ExtendedCamelContext.
setValidatorRegistry - Move getter from context to ExtendedCamelContext.
setName - Move getter from context to ExtendedCamelContext.
setDescription - Move getter from context to ExtendedCamelContext.
getBootstrapFactoryFinder - Move getter from context to ExtendedCamelContext.
getFactoryFinder - Move getter from context to ExtendedCamelContext.
getFactoryFinder - Move getter from context to ExtendedCamelContext.
addInterceptStrategy - Move getter from context to ExtendedCamelContext.
getStartupStepRecorder - Move getter from context to ExtendedCamelContext.
setStartupStepRecorder - Move getter from context to ExtendedCamelContext.
resolvePropertyPlaceholders - Move getter from context to ExtendedCamelContext.
getBasePackageScan - Move getter from context to ExtendedCamelContext.
setBasePackageScan