T - The type of value resolved by this parameterpublic class FixedValueParameterResolver<T> extends Object implements ParameterResolver<T>
| Constructor and Description |
|---|
FixedValueParameterResolver(T value)
Initialize the ParameterResolver to inject the given
value for each incoming 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedPayloadTypepublic FixedValueParameterResolver(T value)
value for each incoming message.value - The value to inject as parameterpublic T resolveParameterValue(Message message)
ParameterResolvermessage, or null if no suitable
parameter value can be resolved.resolveParameterValue in interface ParameterResolver<T>message - The message to resolve the value frompublic boolean matches(Message message)
ParameterResolvermessage.matches in interface ParameterResolver<T>message - The message to evaluatetrue if this resolver can provide a value for the message, otherwise falseCopyright © 2010–2023. All rights reserved.