Voyager ORB

com.objectspace.voyager
Class Snapshot

java.lang.Object
  |
  +--com.objectspace.voyager.Snapshot

public class Snapshot
extends java.lang.Object
implements java.io.Serializable

A Snapshot contains all the information necessary to save an object for subsequent restoration. It is commonly used by the activation framework for saving/restoring an object's state.

Version:
3.0
See Also:
IActivator, Serialized Form

Method Summary
static Snapshot from(java.lang.Object object, java.util.Properties properties, java.lang.Object[] facets)
          Construct and return a snapshot from the specified arguments.
 java.lang.Object[] getFacets()
          Return the facets of the object or null if it has none.
 java.lang.Object getObject()
          Return the object.
 java.util.Properties getProperties()
          Return the properties of the object or null if it has none.
static Snapshot of(java.lang.Object object)
          Return a snapshot of the specified object.
 Proxy restore()
          Return a proxy to my object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObject

public java.lang.Object getObject()
Return the object.

getProperties

public java.util.Properties getProperties()
Return the properties of the object or null if it has none.

getFacets

public java.lang.Object[] getFacets()
Return the facets of the object or null if it has none.

restore

public Proxy restore()
              throws java.io.IOException
Return a proxy to my object.

of

public static Snapshot of(java.lang.Object object)
Return a snapshot of the specified object. An IllegalArgumentException is thrown if the object is not local.
Parameters:
object - The object.

from

public static Snapshot from(java.lang.Object object,
                            java.util.Properties properties,
                            java.lang.Object[] facets)
Construct and return a snapshot from the specified arguments.
Parameters:
object - The object.
properties - The properties of the object.
facets - The facets associated with the object.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240