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