T
- The type of parameter returned by this resolverpublic interface ParameterResolver<T>
Message
.Modifier and Type | Method and Description |
---|---|
boolean |
matches(Message<?> message)
Indicates whether this resolver is capable of providing a value for the given
message . |
T |
resolveParameterValue(Message<?> message)
Resolves the parameter value to use for the given
message , or null if no suitable
parameter value can be resolved. |
default Class<?> |
supportedPayloadType()
Returns the class of the payload that is supported by this resolver.
|
T resolveParameterValue(Message<?> message)
message
, or null
if no suitable
parameter value can be resolved.message
- The message to resolve the value fromboolean matches(Message<?> message)
message
.message
- The message to evaluatetrue
if this resolver can provide a value for the message, otherwise false
Copyright © 2010–2018. All rights reserved.