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, wait
supportedPayloadType
public FixedValueParameterResolver(T value)
value
for each incoming message.value
- The value to inject as parameterpublic T resolveParameterValue(Message message)
ParameterResolver
message
, 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)
ParameterResolver
message
.matches
in interface ParameterResolver<T>
message
- The message to evaluatetrue
if this resolver can provide a value for the message, otherwise false
Copyright © 2010–2018. All rights reserved.