org.axonframework.eventhandling.annotation
Class SequenceNumberParameterResolverFactory
java.lang.Object
org.axonframework.eventhandling.annotation.AbstractAnnotatedParameterResolverFactory<SequenceNumber,Long>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceNumberParameterResolverFactory
public SequenceNumberParameterResolverFactory()
- Initializes a
ParameterResolverFactory
for SequenceNumber
annotated parameters
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.