AnnotationUtils is spring 2.0

This commit is contained in:
Arjen Poutsma
2007-04-11 15:13:58 +00:00
parent 04196916bf
commit 84418ab4ac
2 changed files with 2 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}