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 Type
    Method
    Description
    resolveArgument(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 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