com.sun.sgs.app
Interface ManagedObject

All Known Subinterfaces:
Channel, ClientSession, ManagedObjectRemoval
All Known Implementing Classes:
ManagedSerializable, ScalableDeque, ScalableHashMap, ScalableHashSet, ScalableList

public interface ManagedObject

A marker interface implemented by shared, persistent objects managed by DataManager. Classes that implement ManagedObject must also implement Serializable, as should any non-managed objects they refer to. Any instances of ManagedObject that a managed object refers to directly, or indirectly through non-managed objects, need to be referred to through instances of ManagedReference.

Classes that implement ManagedObject should not provide writeReplace or readRestore methods to designate replacement objects during serialization. Object replacement would interfere with the object identity maintained by the DataManager, and is not permitted.

Classes that implement ManagedObject can provide readObject and writeObject methods to customize their serialization behavior, but the writeObject methods should not perform calls to methods that require a current transaction.

See Also:
DataManager, ManagedReference, Serializable


Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved