class CloneableCloner extends java.lang.Object implements ObjectCloner
Cloneable.| Modifier and Type | Field and Description |
|---|---|
private static java.lang.reflect.Method |
CLONE |
private java.util.IdentityHashMap<java.lang.Object,java.lang.Object> |
clones |
private CloneTable |
cloneTable |
IDENTITY| Constructor and Description |
|---|
CloneableCloner(ClonerConfiguration configuration)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone(java.lang.Object orig)
Create a deep clone of the given object.
|
void |
reset()
Clear the cloner state and any caches.
|
private final CloneTable cloneTable
private static final java.lang.reflect.Method CLONE
private final java.util.IdentityHashMap<java.lang.Object,java.lang.Object> clones
CloneableCloner(ClonerConfiguration configuration)
configuration - the configurationpublic void reset()
reset in interface ObjectClonerpublic java.lang.Object clone(java.lang.Object orig)
throws java.io.IOException,
java.lang.ClassNotFoundException
clone in interface ObjectClonerorig - the original objectjava.io.IOException - if a serialization error occursjava.lang.ClassNotFoundException - if a class cannot be loaded during the cloning process