Skip to content

Commit ed43108

Browse files
committed
SWS-787 - MethodEndpoint.getBean is inconsistent with its API
1 parent 7a9eba7 commit ed43108

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/src/main/java/org/springframework/ws/server/endpoint/MethodEndpoint.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,7 @@ public MethodParameter getReturnType() {
128128
* @throws Exception when the method invocation results in an exception
129129
*/
130130
public Object invoke(Object... args) throws Exception {
131-
Object endpoint = bean;
132-
if (endpoint instanceof String) {
133-
String endpointName = (String) endpoint;
134-
endpoint = beanFactory.getBean(endpointName);
135-
}
131+
Object endpoint = getBean();
136132
ReflectionUtils.makeAccessible(method);
137133
try {
138134
return method.invoke(endpoint, args);

0 commit comments

Comments
 (0)