Skip to content

Update RabbitTemplateConfigurer to take its required settings as constructor arguments #27313

@wilkinsona

Description

@wilkinsona

RabbitTemplateConfigurer has three settings:

  • messageConverter
  • retryTemplateCustomizers
  • rabbitProperties

rabbitProperties must be set but both messageConverter and retryTemplateCustomizer are optional. All three are configured via setter methods making it hard to distinguish between things that are required and things that are optional. As it's required, it'd be good if rabbitProperties was a constructor parameter.

To do this in a backwards-compatible manner we'll have to keep the default constructor and add one that takes a RabbitProperties instance alongside it. We'll also have to keep the setter, albeit in a deprecated form.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions