Click or drag to resize
CacheableObjectXml Class

Note: This API is now obsolete.

A mutable generic [!:System.Object] wrapper that can serve as a distributable value for caching.
Inheritance Hierarchy
SystemObject
  GemStone.GemFire.CacheCacheableObjectXml

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public class CacheableObjectXml : IGFSerializable

The CacheableObjectXml type exposes the following members.

Properties
  NameDescription
Public propertyClassId
Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.
Public propertyObjectSize
return the size of this object in bytes
Public propertyValue
Gets the object value.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Static function to create a new instance from the given object.
Public methodStatic memberCreateDeserializable
Factory function to register this class.
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 methodFromData
Deserializes the [!:System.Object] using [!:System.Xml.Serialization.XmlSerializer] class.
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 methodToData
Serializes this [!:System.Object] using [!:System.Xml.Serialization.XmlSerializer] class.
Public methodToString (Overrides ObjectToString.)
Top
Remarks

This class can contain any object and uses the [!:System.Xml.Serialization.XmlSerializer] to serialize and deserialize the object. So the user must use the XmlSerializer attributes to control the serialization/deserialization of the object (or implement the [!:System.Xml.Serialization.IXmlSerializable]) to change the serialization/deserialization. However, the latter should be avoided for efficiency reasons and the user should implement IGFSerializable instead.

The user must keep in mind that the rules that apply to XmlSerializer would be the rules that apply to this class. For instance the user cannot pass objects of class implementing or containing [!:System.Collections.IDictionary] class, must use [!:System.Xml.Serialization.XmlIncludeAttribute] to mark user-defined types etc.

See Also