public static final class AnnotationCommandTargetResolver.Builder extends Object
AnnotationCommandTargetResolver
.
The TargetAggregateIdentifierAnnotation is defaulted to TargetAggregateIdentifier
,
TargetAggregateVersionAnnotation to TargetAggregateVersion
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AnnotationCommandTargetResolver |
build()
Initializes a
AnnotationCommandTargetResolver as specified through this Builder. |
AnnotationCommandTargetResolver.Builder |
targetAggregateIdentifierAnnotation(Class<? extends Annotation> annotation)
Sets the annotation, that marks the target aggregate identifier.
|
AnnotationCommandTargetResolver.Builder |
targetAggregateVersionAnnotation(Class<? extends Annotation> annotation)
Sets the annotation, that marks the target aggregate version.
|
public AnnotationCommandTargetResolver.Builder targetAggregateIdentifierAnnotation(Class<? extends Annotation> annotation)
Defaults to TargetAggregateIdentifier
.
Use this method if you use an other annotation to mark the field or method
that identifies the target aggregate
and it is not possible to put @TargetAggregateIdentifier
into that annotation (to use it as meta-annotation).
annotation
- Class
of type Annotation
.AnnotationCommandTargetResolver.Builder
instance, for fluent interfacingpublic AnnotationCommandTargetResolver.Builder targetAggregateVersionAnnotation(Class<? extends Annotation> annotation)
Defaults to TargetAggregateVersion
.
Use this method if you use an other annotation to mark the field or method
that identifies the version of the aggregate
and it is not possible to put @TargetAggregateVersion
into that annotation (to use it as meta-annotation).
annotation
- Class
of type Annotation
.AnnotationCommandTargetResolver.Builder
instance, for fluent interfacingpublic AnnotationCommandTargetResolver build()
AnnotationCommandTargetResolver
as specified through this Builder.AnnotationCommandTargetResolver
as specified through this BuilderCopyright © 2010–2019. All rights reserved.