|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.annotation.ParameterResolverFactory
org.axonframework.eventhandling.annotation.TimestampParameterResolverFactory
public class TimestampParameterResolverFactory
ParameterResolverFactory implementation that accepts parameters of a DateTime type that have been annotated
with the Timestamp annotation and assigns the timestamp of the EventMessage.
| Constructor Summary | |
|---|---|
TimestampParameterResolverFactory()
|
|
| Method Summary | |
|---|---|
protected ParameterResolver |
createInstance(Annotation[] memberAnnotations,
Class<?> parameterType,
Annotation[] parameterAnnotations)
If available, creates a ParameterResolver instance that can provide a parameter of type parameterType for a given message. |
boolean |
matches(Message message)
Indicates whether this resolver is capable of providing a value for the given message. |
org.joda.time.DateTime |
resolveParameterValue(Message message)
Resolves the parameter value to use for the given message, or null if no suitable
parameter value can be resolved. |
boolean |
supportsPayloadResolution()
Indicates whether this resolver may be used to resolve the payload parameter of an annotated handler method. |
| Methods inherited from class org.axonframework.common.annotation.ParameterResolverFactory |
|---|
createPayloadResolver, findParameterResolver, registerFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimestampParameterResolverFactory()
| Method Detail |
|---|
protected ParameterResolver createInstance(Annotation[] memberAnnotations,
Class<?> parameterType,
Annotation[] parameterAnnotations)
ParameterResolverFactoryparameterType for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.
createInstance in class ParameterResolverFactorymemberAnnotations - annotations placed on the member (e.g. method)parameterType - the parameter type to find a resolver forparameterAnnotations - annotations places on the parameter
null if none is foundpublic org.joda.time.DateTime resolveParameterValue(Message message)
ParameterResolvermessage, or null if no suitable
parameter value can be resolved.
resolveParameterValue in interface ParameterResolver<org.joda.time.DateTime>message - The message to resolve the value from
public boolean matches(Message message)
ParameterResolvermessage.
matches in interface ParameterResolver<org.joda.time.DateTime>message - The message to evaluate
true if this resolver can provide a value for the message, otherwise falsepublic boolean supportsPayloadResolution()
ParameterResolverFactory
supportsPayloadResolution in class ParameterResolverFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||