org.axonframework.eventhandling.annotation
Class SequenceNumberParameterResolverFactory

java.lang.Object
  extended by org.axonframework.eventhandling.annotation.AbstractAnnotatedParameterResolverFactory<SequenceNumber,Long>
      extended by org.axonframework.eventhandling.annotation.SequenceNumberParameterResolverFactory
All Implemented Interfaces:
ParameterResolverFactory

public final class SequenceNumberParameterResolverFactory
extends AbstractAnnotatedParameterResolverFactory<SequenceNumber,Long>

An extension of the AbstractAnnotatedParameterResolverFactory that accepts parameters of a Long type annotated with the SequenceNumber annotation and assigns the sequenceNumber of the DomainEventMessage.

Primitive long parameters are also supported.

Since:
2.1
Author:
Mark Ingram

Constructor Summary
SequenceNumberParameterResolverFactory()
          Initializes a ParameterResolverFactory for SequenceNumber annotated parameters
 
Method Summary
protected  ParameterResolver<Long> 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

SequenceNumberParameterResolverFactory

public SequenceNumberParameterResolverFactory()
Initializes a ParameterResolverFactory for SequenceNumber annotated parameters

Method Detail

getResolver

protected ParameterResolver<Long> getResolver()
Specified by:
getResolver in class AbstractAnnotatedParameterResolverFactory<SequenceNumber,Long>
Returns:
the parameter resolver that is supplied when a matching parameter is located


Copyright © 2010-2016. All Rights Reserved.