org.axonframework.serializer
Class SerialVersionUIDRevisionResolver

java.lang.Object
  extended by org.axonframework.serializer.SerialVersionUIDRevisionResolver
All Implemented Interfaces:
RevisionResolver

public class SerialVersionUIDRevisionResolver
extends Object
implements RevisionResolver

RevisionResolver implementation that returns the (String representation of the) serialVersionUID of a class. If a class is not serializable, it returns null when asked for a revision.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
SerialVersionUIDRevisionResolver()
           
 
Method Summary
 String revisionOf(Class<?> payloadType)
          Returns the revision for the given payloadType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialVersionUIDRevisionResolver

public SerialVersionUIDRevisionResolver()
Method Detail

revisionOf

public String revisionOf(Class<?> payloadType)
Description copied from interface: RevisionResolver
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.

Specified by:
revisionOf in interface RevisionResolver
Parameters:
payloadType - The type for which to return the revision
Returns:
the revision for the given payloadType


Copyright © 2010-2016. All Rights Reserved.