-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-2818: DSL support for -ws module #3178
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some review to think about.
Thanks
* @param messageSender the sender. | ||
* @deprecated in favor of {@link #setMessageSenders(WebServiceMessageSender...)} | ||
*/ | ||
@Deprecated | ||
public void setMessageSender(WebServiceMessageSender messageSender) { | ||
Assert.state(!this.webServiceTemplateExplicitlySet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind to change logic then in favor of calling a replacing API instead?
Then it is going to be much easier to support possible changes in the target logic afterward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has not been addressed.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I missed this; but, that said, I don't understand it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this:
public void setMessageSender(WebServiceMessageSender messageSender) {
setMessageSenders(messageSender);
}
So, we don't need to have that Assert
in this method any more. The logic from a deprecated method is fully delegated to replacing API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh; ok.
...ation-ws/src/main/java/org/springframework/integration/ws/dsl/BaseWsOutboundGatewaySpec.java
Show resolved
Hide resolved
...ws/src/main/java/org/springframework/integration/ws/dsl/MarshallingWsInboundGatewaySpec.java
Outdated
Show resolved
Hide resolved
...s/src/main/java/org/springframework/integration/ws/dsl/MarshallingWsOutboundGatewaySpec.java
Outdated
Show resolved
Hide resolved
...ion-ws/src/main/java/org/springframework/integration/ws/dsl/SimpleWsOutboundGatewaySpec.java
Outdated
Show resolved
Hide resolved
any updates? Or do you want me to take over this from you? Thanks |
? I pushed rework a couple of days ago - didn't you get a notification? |
I know force-push for a rebase doesn't notify, but I assumed force push with additional commits would - but I guess not. In future, I'll try to remember to push the new commit; then force-push after rebasing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some non-critical review.
I can address them all on merge (including an integration test)
Thanks
P.S. Although there has to be some Docs on the matter! 😄
* @param messageSender the sender. | ||
* @deprecated in favor of {@link #setMessageSenders(WebServiceMessageSender...)} | ||
*/ | ||
@Deprecated | ||
public void setMessageSender(WebServiceMessageSender messageSender) { | ||
Assert.state(!this.webServiceTemplateExplicitlySet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has not been addressed.
Thanks
...ration-ws/src/main/java/org/springframework/integration/ws/dsl/BaseWsInboundGatewaySpec.java
Show resolved
Hide resolved
...ion-ws/src/main/java/org/springframework/integration/ws/dsl/SimpleWsOutboundGatewaySpec.java
Show resolved
Hide resolved
* @param faultMessageResolver the resolver. | ||
* @return the spec. | ||
*/ | ||
public MarshallingWsOutboundGatewayNoTemplateSpec faultMessageResolver(FaultMessageResolver faultMessageResolver) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Longer than 120.
this.gatewayUnmarshaller, this.webServiceMessageFactory); | ||
} | ||
else { | ||
return new MarshallingWebServiceOutboundGateway(this.uri, this.gatewayMarshaller, this.gatewayUnmarshaller, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Longer than 120.
spring-integration-ws/src/test/java/org/springframework/integration/ws/dsl/WsDslTests.java
Show resolved
Hide resolved
- reduce the number of factory methods and use a different spec when an external WST is provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. One more comment and code style. Plus docs and we are good to go.
Everything else is in agreement silently.
Force pushed with additional commit after rebase for doc conflicts. |
Resolves #2818
Docs to follow tomorrow.