org.axonframework.common.annotation
Interface ParameterResolver<T>

Type Parameters:
T - The type of parameter returned by this resolver
All Known Implementing Classes:
CurrentUnitOfWorkParameterResolverFactory, FixedValueParameterResolver

public interface ParameterResolver<T>

Interface for a mechanism that resolves handler method parameter values from a given Message.

Since:
2.0
Author:
Allard Buijze

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.
 

Method Detail

resolveParameterValue

T resolveParameterValue(Message message)
Resolves the parameter value to use for the given message, or null if no suitable parameter value can be resolved.

Parameters:
message - The message to resolve the value from
Returns:
the parameter value for the handler

matches

boolean matches(Message message)
Indicates whether this resolver is capable of providing a value for the given message.

Parameters:
message - The message to evaluate
Returns:
true if this resolver can provide a value for the message, otherwise false


Copyright © 2010-2016. All Rights Reserved.