Interface MigratedSerializable
-
- All Superinterfaces:
Serializable
public interface MigratedSerializable extends Serializable
Transitional marker interface for use with evolution of serializable classes held in persistence. This interface should be implemented by replacement classes for as long as the old classes are supported.- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMigrated()
Return true if this object was created from a previous serialization format.@NonNull Object
writeReplace()
Return a serialization proxy.
-
-
-
Method Detail
-
isMigrated
boolean isMigrated()
Return true if this object was created from a previous serialization format.- Returns:
- true if this object was created from a previous serialization format, false otherwise.
-
writeReplace
@NonNull Object writeReplace()
Return a serialization proxy. Implementations should not return this object, but rather use Externalizable proxy pattern so their serialization format is not tied to this interface.- Returns:
- Serialization proxy.
-
-