public class AnnotationRevisionResolver extends Object implements RevisionResolver
@Revisionannotation. The value of that annotation is returns as the revision of the payload it annotates. Note that
@Revisionis an inherited annotation, meaning that subclasses of annotated classes inherit the revision of their parent. This implementation returns
nullfor objects that do not have a
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the revision for the given
payloadType. The revision is used by upcasters to decide whether they need to process a certain serialized event. Generally, the revision needs to be modified each time the structure of an event has been changed in an incompatible manner.
Copyright © 2010–2020. All rights reserved.