Click or drag to resize

PofAnnotationSerializer Class

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
A PofAnnotationSerializer provides annotation based de/serialization.
Inheritance Hierarchy
System.Object
  Tangosol.IO.Pof.PofAnnotationSerializer

Namespace:  Tangosol.IO.Pof
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public class PofAnnotationSerializer : IPofSerializer

The PofAnnotationSerializer type exposes the following members.

Constructors
  NameDescription
Public methodPofAnnotationSerializer(Int32, Type)
Constructs a PofAnnotationSerializer.
Public methodPofAnnotationSerializer(Int32, Type, Boolean)
Constructs a PofAnnotationSerializer.
Top
Methods
  NameDescription
Public methodDeserialize
Deserialize a user type instance from a POF stream by reading its state using the specified IPofReader object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerialize
Serialize a user type instance to a POF stream by writing its state using the specified IPofWriter object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This serializer must be instantiated with the intended class which is eventually scanned for the presence of the following annotations. This serializer supports classes iff they are annotated with the type level annotation; Portable. This annotation is a marker annotation with no children.

All fields annotated with PortableProperty are explicitly deemed POF serializable with the option of specifying overrides to provide explicit behaviour such as:

  • Explicit POF indexes
  • Custom ICodec to specify concrete implementations / customizations

The Index (POF index) can be omitted iff the auto-indexing feature is enabled. This is enabled by instantiating this class with the autoIndex constructor argument. This feature determines the index based on any explicit indexes specified and the name of the portable properties. Currently objects with multiple versions is not supported. The following illustrates the auto index algorithm:
NameExplicit IndexDetermined Index
c11
a0
b2
NOTE: This implementation does support objects that implement Evolvable

See Also