Skip to content

Commit 7f83f5f

Browse files
committed
Revert AnnotationGatewayProxyFactoryBean logic
The `AnnotationGatewayProxyFactoryBean` can be configured via setters and via annotation in the provided interface. * Override `setProxyDefaultMethods()` to `true` only if annotation explicitly provides `true`
1 parent 5de072b commit 7f83f5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/gateway/AnnotationGatewayProxyFactoryBean.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ protected void onInit() {
9595

9696
populateAsyncExecutorIfAny();
9797

98-
setProxyDefaultMethods(this.gatewayAttributes.getBoolean("proxyDefaultMethods"));
98+
boolean proxyDefaultMethods = this.gatewayAttributes.getBoolean("proxyDefaultMethods");
99+
if (proxyDefaultMethods) { // Override only if annotation attribute is different
100+
setProxyDefaultMethods(true);
101+
}
99102
super.onInit();
100103
}
101104

0 commit comments

Comments
 (0)