static class PrototypeFactory.PrototypeSerializationFactory<T extends java.io.Serializable> extends java.lang.Object implements Factory<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private T |
iPrototype
The object to clone via serialization each time
|
private static long |
serialVersionUID
The serial version
|
Modifier | Constructor and Description |
---|---|
private |
PrototypeSerializationFactory(T prototype)
Constructor to store prototype
|
Modifier and Type | Method and Description |
---|---|
T |
create()
Creates an object using serialization.
|
private void |
readObject(java.io.ObjectInputStream is)
Overrides the default readObject implementation to prevent
de-serialization (see COLLECTIONS-580).
|
private void |
writeObject(java.io.ObjectOutputStream os)
Overrides the default writeObject implementation to prevent
serialization (see COLLECTIONS-580).
|
private static final long serialVersionUID
private final T extends java.io.Serializable iPrototype
private PrototypeSerializationFactory(T prototype)
public T create()
private void writeObject(java.io.ObjectOutputStream os) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream is) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException