Class MessageContextMethodArgumentResolver
java.lang.Object
org.springframework.ws.server.endpoint.adapter.method.MessageContextMethodArgumentResolver
- All Implemented Interfaces:
MethodArgumentResolver
Implementation of
MethodArgumentResolver
that supports MessageContext
arguments.- Since:
- 2.0
- Author:
- Arjen Poutsma
-
Constructor Summary
-
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.
-
Constructor Details
-
MessageContextMethodArgumentResolver
public MessageContextMethodArgumentResolver()
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) Description copied from interface:MethodArgumentResolver
Indicates whether the given method parameter is supported by this resolver.- Specified by:
supportsParameter
in interfaceMethodArgumentResolver
- Parameters:
parameter
- the method parameter to check- Returns:
true
if this resolver supports the supplied parameter;false
otherwise
-
resolveArgument
public MessageContext resolveArgument(MessageContext messageContext, org.springframework.core.MethodParameter parameter) throws Exception Description copied from interface:MethodArgumentResolver
Resolves the given parameter into a method argument.- Specified by:
resolveArgument
in interfaceMethodArgumentResolver
- Parameters:
messageContext
- the current message contextparameter
- the parameter to resolve to an argument. This parameter must have previously been passed to theMethodArgumentResolver.supportsParameter(MethodParameter)
method of this interface, which must have returnedtrue
.- Returns:
- the resolved argument. May be
null
. - Throws:
Exception
- in case of errors
-