Spring Web Services Framework

org.springframework.ws.server.endpoint.adapter.method
Interface MethodArgumentResolver

All Known Implementing Classes:
AbstractJaxb2PayloadMethodProcessor, AbstractPayloadMethodProcessor, AbstractPayloadSourceMethodProcessor, Dom4jPayloadMethodProcessor, DomPayloadMethodProcessor, JaxbElementPayloadMethodProcessor, JDomPayloadMethodProcessor, MarshallingPayloadMethodProcessor, MessageContextMethodArgumentResolver, SoapHeaderElementMethodArgumentResolver, SoapMethodArgumentResolver, SourcePayloadMethodProcessor, StaxPayloadMethodArgumentResolver, XmlRootElementPayloadMethodProcessor, XomPayloadMethodProcessor, XPathParamMethodArgumentResolver

public interface MethodArgumentResolver

Strategy interface used to resolve method parameters into arguments. This interface is used to allow the DefaultMethodEndpointAdapter to be indefinitely extensible.

Since:
2.0
Author:
Arjen Poutsma

Method Summary
 Object resolveArgument(MessageContext messageContext, MethodParameter parameter)
          Resolves the given parameter into a method argument.
 boolean supportsParameter(MethodParameter parameter)
          Indicates whether the given method parameter is supported by this resolver.
 

Method Detail

supportsParameter

boolean supportsParameter(MethodParameter parameter)
Indicates whether the given method parameter is supported by this resolver.

Parameters:
parameter - the method parameter to check
Returns:
true if this resolver supports the supplied parameter; false otherwise

resolveArgument

Object resolveArgument(MessageContext messageContext,
                       MethodParameter parameter)
                       throws Exception
Resolves the given parameter into a method argument.

Parameters:
messageContext - the current message context
parameter - the parameter to resolve to an argument. This parameter must have previously been passed to the supportsParameter(MethodParameter) method of this interface, which must have returned true.
Returns:
the resolved argument. May be null.
Throws:
Exception - in case of errors

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.