01: /*
02: * $RCSfile: SerializableState.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:57:53 $
10: * $State: Exp $
11: */
12: package javax.media.jai.remote;
13:
14: import java.io.Serializable;
15:
16: /**
17: * An interface to be implemented by classes instances of which act as
18: * serializable proxies for instances of non-serializable classes.
19: *
20: * @see java.io.Serializable
21: *
22: * @since JAI 1.1
23: */
24: public interface SerializableState extends Serializable {
25:
26: /**
27: * Retrieve the class of the object which would be returned by
28: * invoking <code>getObject()</code>.
29: *
30: * @return The class of the object which would be returned by
31: * <code>getObject()</code>.
32: */
33: Class getObjectClass();
34:
35: /**
36: * Reconstitutes an object from a serializable version of its state
37: * wrapped by an implementation of this interface.
38: *
39: * @return Deserialized form of the state.
40: */
41: Object getObject();
42: }
|