static class PrototypeFactory.PrototypeCloneFactory<T> extends java.lang.Object implements Factory<T>
| 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
|
| 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 final T iPrototype
private transient java.lang.reflect.Method iCloneMethod
private PrototypeCloneFactory(T prototype, java.lang.reflect.Method method)