Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IPickleFactory Struct Reference

Inheritance diagram for IPickleFactory:

IPayload IMessage IRemoteCacheLoader Payload ITask Message ClusterEntry InvalidatorPayload Message PathMapping QueuedEntry RollCall List of all members.

Public Member Functions

char[] getGuid ()
Object create (IReader reader)

Detailed Description

Interface for all deserializable classes. Such classes either implement the full concrete class instance or they act as a proxy of sorts, creating the true instance only when called upon to do so. An IPickleProxy could perhaps take alternative action when called upon to create an "old" or "unsupported" class guid. The default behaviour is to throw an exception when an unknown guid is seen.

Definition at line 76 of file IPickle.d.


Member Function Documentation

char [] getGuid  ) 
 

Identify this serializable class via a char[]. This should be (per class) unique within the domain. Use version numbers or similar mechanism to isolate different implementations of the same class.

Reimplemented in Payload, InvalidatorPayload, Message, NullMessage, Task, and RollCall.

Referenced by TaskServer::addConsumer().

Object create IReader  reader  ) 
 

This defines the factory method. Each IPickleProxy object provides a factory for creating a deserialized instance. The factory is registered along with the appropriate guid.

Reimplemented in Payload, Message, and Task.

Referenced by PickleRegistry::PickleProxy::create(), testClassSerialization(), and testRemoteCacheLoader().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 7 19:07:06 2004 for Mango by doxygen 1.3.6