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:
committed by
Gary Russell
parent
a2e0dda4d8
commit
ab06c21bbc
@@ -360,7 +360,7 @@ public abstract class AbstractAmqpOutboundEndpoint extends AbstractReplyProducin
|
||||
return this.exchangeNameGenerator;
|
||||
}
|
||||
|
||||
protected AmqpHeaderMapper getHeaderMapper() {
|
||||
public AmqpHeaderMapper getHeaderMapper() {
|
||||
return this.headerMapper;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class AmqpOutboundEndpoint extends AbstractAmqpOutboundEndpoint
|
||||
|
||||
|
||||
@Override
|
||||
protected RabbitTemplate getRabbitTemplate() {
|
||||
public RabbitTemplate getRabbitTemplate() {
|
||||
return this.rabbitTemplate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user