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 static final long serialVersionUID
private final T iPrototype
private transient java.lang.reflect.Method iCloneMethod
private PrototypeCloneFactory(T prototype, java.lang.reflect.Method method)