|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.annotation.FixedValueParameterResolver<T>
T
- The type of value resolved by this parameterpublic class FixedValueParameterResolver<T>
ParameterResolver implementation that injects a fixed value. Useful for injecting parameter values that do not rely on information contained in the incoming message itself.
Constructor Summary | |
---|---|
FixedValueParameterResolver(T value)
Initialize the ParameterResolver to inject the given value for each incoming message. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedValueParameterResolver(T value)
value
for each incoming message.
value
- The value to inject as parameterMethod Detail |
---|
public 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 from
public boolean matches(Message message)
ParameterResolver
message
.
matches
in interface ParameterResolver<T>
message
- The message to evaluate
true
if this resolver can provide a value for the message, otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |