Class AnnotationBasedTagResolver

java.lang.Object
org.axonframework.eventsourcing.eventstore.AnnotationBasedTagResolver
All Implemented Interfaces:
TagResolver

public class AnnotationBasedTagResolver extends Object implements 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;
             
Both approaches are equivalent and will produce the same tags.
Since:
5.0.0
Author:
Mateusz Nowak
See Also:
  • Constructor Details

    • AnnotationBasedTagResolver

      public AnnotationBasedTagResolver()
  • Method Details