-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
MA Sprint 16, MA Sprint 17, MA Sprint 18, Sprint 19, Sprint 20, Sprint 21, Sprint 22
Implement rules from https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_multiple_camelcontexts_per_application_not_supported
List of classes where context has been removed available in https://github.com/apache/camel/commit/87998250fb56e561643e192874ba00c5ff3a1b9c
When
The context field from a org.apache.camel.{class} annotation has been used
Perform
Add an hint to remove it with:
- message = "The `context` attribute on `
{class}
` annotations has been removed since support for multiple CamelContexts has been removed and only one CamelContext per deployment is supported.
- link = https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_multiple_camelcontexts_per_application_not_supported
Where
{class} matches pattern="(BeanInject|Consume|DynamicRouter|EndpointInject|Produce|PropertyInject|RecipientList|RoutingSlip)"