java.beans
public abstract class PersistenceDelegate extends Object
A PersistenceDelegate
describes how a another object
has to constructed and transformed in order to create a complete
replicate.
For custom classes you will need to implement
PersistenceDelegate
in a way that is suitable for them.
To make use of the implementation you have to register it with an
Encoder
using the {Encoder#setPersistenceDelegate} method.
Constructor and Description |
---|
PersistenceDelegate() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize(Class<?> type,
Object oldInstance,
Object newInstance,
Encoder out) |
protected abstract Expression |
instantiate(Object oldInstance,
Encoder out) |
protected boolean |
mutatesTo(Object oldInstance,
Object newInstance) |
void |
writeObject(Object oldInstance,
Encoder out) |
public PersistenceDelegate()
protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
public void writeObject(Object oldInstance, Encoder out)
protected abstract Expression instantiate(Object oldInstance, Encoder out)