Give access to AmqpOutboundEndpoint.RabbitTemplate

Related to https://github.com/spring-cloud/spring-cloud-stream/pull/1824

There are some use-cases when we would like to further customize a
`RabbitTemplate` encapsulated in the `AmqpOutboundEndpoint`.
For this purpose there is just enough to make its getter as `public`.
Also make a `AmqpHeaderMapper` available same way via `public` getter
This commit is contained in:
Artem Bilan
2019-10-23 11:29:52 -04:00
committed by Gary Russell
parent a2e0dda4d8
commit ab06c21bbc
2 changed files with 2 additions and 2 deletions

View File

@@ -360,7 +360,7 @@ public abstract class AbstractAmqpOutboundEndpoint extends AbstractReplyProducin
return this.exchangeNameGenerator;
}
protected AmqpHeaderMapper getHeaderMapper() {
public AmqpHeaderMapper getHeaderMapper() {
return this.headerMapper;
}

View File

@@ -98,7 +98,7 @@ public class AmqpOutboundEndpoint extends AbstractAmqpOutboundEndpoint
@Override
protected RabbitTemplate getRabbitTemplate() {
public RabbitTemplate getRabbitTemplate() {
return this.rabbitTemplate;
}