public class AnnotationRevisionResolver extends Object implements RevisionResolver
@Revision annotation. The value
of that annotation is returns as the revision of the payload it annotates. Note that @Revision is an
inherited annotation, meaning that subclasses of annotated classes inherit the revision of their parent.
This implementation returns null for objects that do not have a @Revision annotation.| Constructor and Description |
|---|
AnnotationRevisionResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
revisionOf(Class<?> payloadType)
Returns the revision for the given
payloadType. |
public String revisionOf(Class<?> payloadType)
RevisionResolverpayloadType.
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.revisionOf in interface RevisionResolverpayloadType - The type for which to return the revisionpayloadTypeCopyright © 2010–2018. All rights reserved.