public interface SerializableProxy extends Serializable
SerializableProxy
is serialized it is serialized
via the following mechanism:
Object writeReplace() throws ObjectStreamException { SerializableProxy proxy = serializableClass.newInstance(); proxy.setProxyInstance(this); return proxy; }
Implementors of this interface should store any state that is required to re-create the proxy in this class's serialized
form. Implementors also *MUST* implement an Object readResolve() throws ObjectStreamException
method, the
returns the de-serialized proxy.
DefaultSerializableProxy
Modifier and Type | Method and Description |
---|---|
void |
setProxyInstance(Object proxy)
Set the proxy instance.
|
void setProxyInstance(Object proxy)
proxy
- the proxy instanceCopyright © 2012 JBoss by Red Hat. All Rights Reserved.