Class AnnotationBasedTagResolver
java.lang.Object
org.axonframework.eventsourcing.eventstore.AnnotationBasedTagResolver
- All Implemented Interfaces:
TagResolver
Implementation of
TagResolver that processes EventTag and EventTags annotation on fields and
methods of event payload objects to create Tag instances. Supports inherited fields and methods.
The EventTag annotation can be used in two ways:
- Directly on fields and methods using the repeatable syntax:
@EventTag @EventTag(key = "identifier") private String id; - Using the container annotation
EventTags:@EventTags({ @EventTag, @EventTag(key = "identifier") }) private String id;
- Since:
- 5.0.0
- Author:
- Mateusz Nowak
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException thrown when tag resolution fails. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AnnotationBasedTagResolver
public AnnotationBasedTagResolver()
-
-
Method Details
-
resolve
Description copied from interface:TagResolver
-