SunSPOT API V3.0


com.sun.squawk.io.mailboxes
Interface ICopiable

All Known Implementing Classes:
CopiableTestResults

public interface ICopiable

Interface for objects that may be passed in ObjectEnvelopes between Isolates. The copyFrom method allows a class to specify how objects should be copied. Note that an ICopiable object should a public no-args constructor in order to be copiable.

Author:
Dave Cleal

Method Summary
 void copyFrom(Object o)
          Set the state of this object based on the state of object o.
 

Method Detail

copyFrom

void copyFrom(Object o)
Set the state of this object based on the state of object o. This method should be careful not to store pointers to either the original or copied object. The copyFrom is likely to be called in the context of the sending Isolate, but this object is destined for use by the receiving Isolate.

Parameters:
o - the object the copy from

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.