org.jboss.serial.persister
Interface Persister
- All Known Implementing Classes:
- ArrayPersister, ClassReferencePersister, ExternalizePersister, PrivateWritePersister, ProxyPersister, RegularObjectPersister
- public interface Persister
Interface used to define how to load complex objects from the repository or streaming
$Id: Persister.java,v 1.6 2005/11/03 19:02:36 csuconic Exp $
- Author:
- clebert suconic
getId
public byte getId()
- You need to always return what was sent by setId. This is to enable Streaming to discover what Persister to use
setId
public void setId(byte id)
writeData
public void writeData(ObjectDescription descriptor,
java.io.ObjectOutput out,
java.lang.Object obj,
ObjectSubstitutionInterface substitution)
throws java.io.IOException
- Throws:
java.io.IOException
readData
public java.lang.Object readData(java.lang.ClassLoader loader,
ObjectDescription descriptor,
java.io.ObjectInput input,
ObjectSubstitutionInterface substitution)
throws java.io.IOException
- Throws:
java.io.IOException
JBoss Serialization, a new approach to java-serialization.