AnnotationUtils is spring 2.0
This commit is contained in:
@@ -20,7 +20,6 @@ import java.lang.reflect.Method;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.transform.TransformerFactory;
|
||||
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.ws.context.MessageContext;
|
||||
import org.springframework.ws.server.EndpointMapping;
|
||||
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
|
||||
@@ -61,7 +60,7 @@ public class PayloadRootAnnotationMethodEndpointMapping extends AbstractAnnotati
|
||||
}
|
||||
|
||||
protected String getLookupKeyForMethod(Method method) {
|
||||
PayloadRoot annotation = AnnotationUtils.getAnnotation(method, PayloadRoot.class);
|
||||
PayloadRoot annotation = method.getAnnotation(PayloadRoot.class);
|
||||
return annotation != null ? annotation.value() : null;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.ws.soap.server.endpoint.mapping;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.ws.context.MessageContext;
|
||||
@@ -96,7 +95,7 @@ public class SoapActionAnnotationMethodEndpointMapping extends AbstractAnnotatio
|
||||
}
|
||||
|
||||
protected String getLookupKeyForMethod(Method method) {
|
||||
SoapAction soapAction = AnnotationUtils.getAnnotation(method, SoapAction.class);
|
||||
SoapAction soapAction = method.getAnnotation(SoapAction.class);
|
||||
return soapAction != null ? soapAction.value() : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user