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`
This commit is contained in:
Artem Bilan
2021-11-10 16:35:04 -05:00
parent 5de072b666
commit 7f83f5f74a

View File

@@ -95,7 +95,10 @@ public class AnnotationGatewayProxyFactoryBean extends GatewayProxyFactoryBean {
populateAsyncExecutorIfAny();
setProxyDefaultMethods(this.gatewayAttributes.getBoolean("proxyDefaultMethods"));
boolean proxyDefaultMethods = this.gatewayAttributes.getBoolean("proxyDefaultMethods");
if (proxyDefaultMethods) { // Override only if annotation attribute is different
setProxyDefaultMethods(true);
}
super.onInit();
}