Skip to content

Commit ab06c21

Browse files
artembilangaryrussell
authored andcommitted
Give access to AmqpOutboundEndpoint.RabbitTemplate
Related to spring-cloud/spring-cloud-stream#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
1 parent a2e0dda commit ab06c21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/outbound/AbstractAmqpOutboundEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ protected ExpressionEvaluatingMessageProcessor<String> getExchangeNameGenerator(
360360
return this.exchangeNameGenerator;
361361
}
362362

363-
protected AmqpHeaderMapper getHeaderMapper() {
363+
public AmqpHeaderMapper getHeaderMapper() {
364364
return this.headerMapper;
365365
}
366366

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/outbound/AmqpOutboundEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public String getComponentType() {
9898

9999

100100
@Override
101-
protected RabbitTemplate getRabbitTemplate() {
101+
public RabbitTemplate getRabbitTemplate() {
102102
return this.rabbitTemplate;
103103
}
104104

0 commit comments

Comments
 (0)