public interface ObjectCloner
Modifier and Type | Field and Description |
---|---|
static ObjectCloner |
IDENTITY
The identity object cloner.
|
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.
|
static final ObjectCloner IDENTITY
void reset()
java.lang.Object clone(java.lang.Object orig) throws java.io.IOException, java.lang.ClassNotFoundException
orig
- the original objectjava.io.IOException
- if a serialization error occursjava.lang.ClassNotFoundException
- if a class cannot be loaded during the cloning processCopyright © 2011 JBoss, a division of Red Hat, Inc.