org.axonframework.eventhandling.annotation
Class TimestampParameterResolverFactory

java.lang.Object
  extended by org.axonframework.eventhandling.annotation.AbstractAnnotatedParameterResolverFactory<Timestamp,org.joda.time.DateTime>
      extended by org.axonframework.eventhandling.annotation.TimestampParameterResolverFactory
All Implemented Interfaces:
ParameterResolverFactory

public final class TimestampParameterResolverFactory
extends AbstractAnnotatedParameterResolverFactory<Timestamp,org.joda.time.DateTime>

AbstractAnnotatedParameterResolverFactory that accepts parameters with type DateTime that are annotated with the Timestamp annotation and assigns the timestamp of the EventMessage.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
TimestampParameterResolverFactory()
          Initializes a ParameterResolverFactory for Timestamp annotated parameters
 
Method Summary
protected  ParameterResolver<org.joda.time.DateTime> getResolver()
           
 
Methods inherited from class org.axonframework.eventhandling.annotation.AbstractAnnotatedParameterResolverFactory
createInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampParameterResolverFactory

public TimestampParameterResolverFactory()
Initializes a ParameterResolverFactory for Timestamp annotated parameters

Method Detail

getResolver

protected ParameterResolver<org.joda.time.DateTime> getResolver()
Specified by:
getResolver in class AbstractAnnotatedParameterResolverFactory<Timestamp,org.joda.time.DateTime>
Returns:
the parameter resolver that is supplied when a matching parameter is located


Copyright © 2010-2016. All Rights Reserved.