static class PrototypeFactory.PrototypeCloneFactory<T> extends java.lang.Object implements Factory<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
iCloneMethod
The method used to clone
|
private T |
iPrototype
The object to clone each time
|
private static long |
serialVersionUID
The serial version
|
Modifier | Constructor and Description |
---|---|
private |
PrototypeCloneFactory(T prototype,
java.lang.reflect.Method method)
Constructor to store prototype.
|
Modifier and Type | Method and Description |
---|---|
T |
create()
Creates an object by calling the clone method.
|
private void |
findCloneMethod()
Find the Clone method for the class specified.
|
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 iPrototype
private transient java.lang.reflect.Method iCloneMethod
private PrototypeCloneFactory(T prototype, java.lang.reflect.Method method)
private void findCloneMethod()
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