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
Modifier and TypeMethodDescriptionresolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) Resolves the given parameter into a method argument.boolean
supportsParameter
(org.springframework.core.MethodParameter parameter) Indicates whether the given method parameter is supported by this resolver.
-
Method Details
-
supportsParameter
boolean supportsParameter(org.springframework.core.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, org.springframework.core.MethodParameter parameter) throws Exception Resolves the given parameter into a method argument.- Parameters:
messageContext
- the current message contextparameter
- the parameter to resolve to an argument. This parameter must have previously been passed to thesupportsParameter(MethodParameter)
method of this interface, which must have returnedtrue
.- Returns:
- the resolved argument. May be
null
. - Throws:
Exception
- in case of errors
-